Devices
Unregister Expo push token
DELETE
/
v1
/
devices
/
push-tokens
Unregister Expo push token
curl --request DELETE \
--url https://api.wazapin.com/v1/devices/push-tokens \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'const options = {
method: 'DELETE',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://api.wazapin.com/v1/devices/push-tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/devices/push-tokens"
payload = { "token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Response
No Content
⌘I
Unregister Expo push token
curl --request DELETE \
--url https://api.wazapin.com/v1/devices/push-tokens \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'const options = {
method: 'DELETE',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://api.wazapin.com/v1/devices/push-tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/devices/push-tokens"
payload = { "token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}