Enable / Disable Push Notification
Enable User Push Notification
POST
https://api.talkplus.io/v1.4/api/users/:userId/push/enable
Enable push notification for given user
Path Parameters
Name
Type
Description
userId*
string
Headers
Name
Type
Description
content-type
string
application/json
app-id*
string
App ID
api-key*
string
App API key
{
"user": {
"id": "user456",
"username": "john",
"profileImageUrl": "http://cnd.test.com/123.jpg",
"disablePushNotification": false,
"data": {
"someMetaKey1": "someMetaValue1",
"someMetaKey2": "someMetaValue2"
},
"updatedAt": 1603244410844,
"createdAt": 1603244410844
}
}
Disable User Push Notification
POST
https://api.talkplus.io/v1.4/api/users/:userId/push/disable
Disable push notification for given user
Path Parameters
Name
Type
Description
userId*
string
Headers
Name
Type
Description
content-type
string
application/json
app-id*
string
App ID
api-key*
string
App API key
{
"user": {
"id": "user456",
"username": "john",
"profileImageUrl": "http://cnd.test.com/123.jpg",
"disablePushNotification": true,
"data": {
"someMetaKey1": "someMetaValue1",
"someMetaKey2": "someMetaValue2"
},
"updatedAt": 1603244410844,
"createdAt": 1603244410844
}
}
Last updated