Latest stories

change_notification_status

  • Inputs
{
    "for_all": "integer 0 or 1: 1 for all sessions, 0 for this session"
}

  • Errors
{
    "for_all": [
        {
            "min value is 0": "minimum valid value is  0"
        },
        {
            "max value is 1": "maximum valid value is  1"
        }
    ],
    "must_login": "user must be login"
}

  • Extra Description
Change status for notification on this session or on all sessions the status changes from on to off or reverse every time this route is called

  • Sample
  • Url:
https://api.pantel.me/a/change_notification_status?for_all=1
  • Output:
                                {
    "status": "success",
    "time": 1528703177.901898
}