OlegKlimenko / Plamber-Android

The Android application for Plamber project.
https://plamber.com.ua/
Apache License 2.0
1 stars 0 forks source link

Create reminder to rate our app #73

Closed OlegKlimenko closed 6 years ago

OlegKlimenko commented 6 years ago

Create a popup which offers to rate our app on google play market:

OlegKlimenko commented 6 years ago

Create reminder to rate our app

OlegKlimenko commented 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