Closed OlegKlimenko closed 6 years ago
I've created API endpoints to fetching and updating reminder status as we discussed a few days ago. This API also related and must be used for this task: https://github.com/OlegKlimenko/Plamber-Android/issues/72
FETCHING REMINDERS This URL must be pinged:
<host>/api/v1/get-reminders/
Request example:
{"user_token": "<token>"}
Error response (user token not exists):
{"status": 404,
"details": "not exists"}
Successful response example:
{
"detail": "successful",
"data": {
"vk": true,
"twitter": true,
"fb_page": true,
"disabled_all": false,
"app_rate": true,
"fb_group": true
}
}
UPDATING REMINDERS This URL must be pinged:
<host>/api/v1/update-reminder/
Request example:
{"user_token": "<token>", "field": "twitter", "value": false}
Successful example:
{
"detail": "successful"
}
As always each request must also have an app_key param in the body
Create a popup which offers to rate our app on google play market: