PlaceAVote / pav-api

This repository contains the Placeavote API.
0 stars 0 forks source link

Email Contact Endpoint #103

Closed HistoireDeBabar closed 8 years ago

HistoireDeBabar commented 8 years ago

To allow users to invite friends/contacts through emails, the api needs to support receiving contact list to email on behalf of the user. As discussed, the request body should look like the following:

{
   contacts: [
     {
         name:  "toby",
         email: "toby@lovesspam.com"
     }
   ],
   message: "Check out this super cool democracy website",
}

The backend should also deal with email duplication (e.g. a user can't invite a person multiple time in x hours/days/minutes), not inviting users who are already members.

johnboy14 commented 8 years ago

Its pretty trivial to filter out users who are already members if there emails match, we will have to persist a list of user emails the user has invited so they don't do it again.