-
Notifications
You must be signed in to change notification settings - Fork 0
Delete Request
Developer From Jokela edited this page Jul 15, 2020
·
1 revision
This method deletes previously saved data from Push Request.
Any data that belongs to this user will be deleted immediately.
- Method:
POST - URL:
/api/v1/delete
-
server_url: Wilma Server's url (include the Slug ID if needed) -
session: Wilma Server's session cookie value (read more below) -
iid_key: FCM Client ID (or as google calls it "Instance ID") -
apikey: This is optional, required only if apikey check is turned on innotifier.py. (Can also be checked from client using a GET
Wilma Session is a cookie (Wilma2SID=f91a3ffb7ecf9d9db622a485338cb646;). API needs only cookie's value, nothing else. I recommend using this regex to extract that: ^(.*)Wilma2SID=([^;]+)(.*)$, and group 2 is the value.
200 OK
{
"status": true
}
i.e. 500 Internal Server error or 400 Bad Request
{
"status": false,
"cause": "Example cause of this error"
}
i.e. 500 Internal Server error or 400 Bad Request, which is caused by Wilma error
{
"status": false,
"cause": "Example cause of this error",
"wilma": {
"id": "common-20",
"message": "Istunnon tunniste ei kelpaa.",
"description": "Kirjautumiseen käytetty sivu tulee välimuistista tai Wilma on käynnistetty uudelleen.",
"whatnext": "Ole hyvä ja kirjaudu sisään uudelleen. Jos tämä virhe toistuu usein, ota yhteys oppilaitokseen.",
"statuscode": 403
}
}