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.
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.
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:
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.