POST api/SocialDriver/AddNotificationToken
Subscribe or unsubscribe to notifications
Request Information
URI Parameters
None.
Body Parameters
NotificationTokenRequestName | Description | Type | Additional information |
---|---|---|---|
NotificationToken |
The token of the device |
string |
None. |
NotificationEndpointType |
The notification endpoint type |
MobileNotificationEndpointType |
None. |
SubscriptionAction |
The action to perform |
SubscriptionAction |
None. |
Request Formats
application/json, text/json
Sample:
{ "NotificationToken": "sample string 1", "NotificationEndpointType": 0, "SubscriptionAction": 0 }
application/xml, text/xml
Sample:
<NotificationTokenRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <NotificationToken>sample string 1</NotificationToken> <NotificationEndpointType>AmazonDeviceMessaging</NotificationEndpointType> <SubscriptionAction>Register</SubscriptionAction> </NotificationTokenRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |