What we need, is to add an additional field to each member object:
"invite_status": "joined"
The possible values are: sms_sent, joined
We should probably add a helper method to the User class that will return the correct value.
Here is how to calculate this value:
If the user has any phone numbers that are verified, then he is joined
Otherwise, return sms_sent
In the future we will add a few more possible values (such as an intermediate value, in the case where the user has viewed the invite page, but has not yet installed the app)
This is for the
GET /albums/{aid}/
endpoint.Right now, the
members
array that it returns looks like:What we need, is to add an additional field to each member object:
The possible values are:
sms_sent
,joined
We should probably add a helper method to the
User
class that will return the correct value.Here is how to calculate this value:
joined
sms_sent
In the future we will add a few more possible values (such as an intermediate value, in the case where the user has viewed the invite page, but has not yet installed the app)