The API for the Did it app
- POST to http://139.59.184.179/api/v1/users (IP will change to URI soon)
- POST raw data as {"name":"Legend","phone":"00000000","proto":"gcm|apns"}.
- Provide header of "api-secret" = 75bf2f1b372ce11b1b082b6a5b64c504be56e00fa4cfd5c8cae29fa540a4c2ec
- You will receive a 200 response with the user data.
- POST to http://139.59.184.179/api/v1/check (IP will change to URI soon)
- POST raw data as {"phone":"00000000"}.
- Provide header of "api-secret" = 75bf2f1b372ce11b1b082b6a5b64c504be56e00fa4cfd5c8cae29fa540a4c2ec
- You will receive a 200 response with the user data.
- GET to http://139.59.184.179/api/v1/users (IP will change to URI soon)
- Pass api-key in header as user api-key
- You will recieve a 200 response with user.
- PUT to http://139.59.184.179/api/v1/users (IP will change to URI soon)
- PUT raw data as {"name":"###","phone":"###","proto":"###","device_token":"###"}.
- Pass api-key in header as user api-key
- You will receive a 200 response with the user data.
- POST to http://139.59.184.179/api/v1/contacts (IP will change to URI soon)
- Pass api-key in header as user api-key
- Pass a list of phone numbers {"numbers":["+331234123123","(+44)1234233123","00449384123123","07384123123","019384123123"]}
- A user is friended with those users who's numbers they have and the friendships are recipricol.
- You will get the user back and the friends
- POST to http://139.59.184.179/api/v1/send (IP will change to URI soon)
- Pass api-key in header as user api-key
- You will receive a 200 response with the user data.
Reply to a dong
- POST to http://139.59.184.179/api/v1/reply (IP will change to URI soon)
- Pass api-key in header as user api-key
- Pass the {"replyToID":"###","message":"####","image":"###",'sound':###} - replyToID = the user you are replying to
- You will receive a 200 response with the user data.
- Clean up pushd when a user updates device_token