POST api/PushNotificationRegister/RequestRegistrationIdAndHubName?authToken={authToken}&handle={handle}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
authToken | string |
Required |
|
handle | string |
Required |
Body Parameters
None.
Response Information
Resource Description
ServiceResultOfPushNotificationRegisterModelName | Description | Type | Additional information |
---|---|---|---|
Result | PushNotificationRegisterModel |
None. |
|
ErrorCode | ServiceErrorCode |
None. |
|
ErrorMessage | Collection of string |
None. |
|
Success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Result": { "RegistrationId": "sample string 1", "ListenConnectionString": "sample string 2", "HubName": "sample string 3" }, "ErrorCode": 0, "ErrorMessage": [ "sample string 1", "sample string 2" ], "Success": true }
application/xml, text/xml
Sample:
<ServiceResultOfPushNotificationRegisterModelEJHQiVcc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOP.Common.Infrastructure.ApiObjects.Results"> <ErrorCode>None</ErrorCode> <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </ErrorMessage> <Success>true</Success> <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/BOP.Apps.Web.Areas.Api.Models"> <d2p1:HubName>sample string 3</d2p1:HubName> <d2p1:ListenConnectionString>sample string 2</d2p1:ListenConnectionString> <d2p1:RegistrationId>sample string 1</d2p1:RegistrationId> </Result> </ServiceResultOfPushNotificationRegisterModelEJHQiVcc>