Service
Click here for a complete list of operations.
SubscribeMobileAppPush
Inserts or updates a user's Push Notification Device ID.
Arguments:
LoginEmail: Login Email for Spread.
Password: Login Password of Spread.
AppName: The name of the app which the push notification is for.
ProviderName: "APNS" for Apple Push Notification Service, "FCM" for Firebase Cloud Messaging.
PlatformName: The name of the platform the device ID originated from, Android: "A", iOS: "I", Windows: "W", Web: "B"
SubscriberEmailOrPhone: The Email or Phone of the subscriber whose push notification information will be inserted or updated.
DeviceID: The push notification device ID.
AreNotificationsEnabled: Indicates if the user has push notifications enabled or not.
Returns 1 if the subscriber was inserted or updated succcessfully, otherwise returns the error message.
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /service.asmx HTTP/1.1 Host: service.rspread.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://service.reasonablespread.com/SubscribeMobileAppPush" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SubscribeMobileAppPush xmlns="http://service.reasonablespread.com/"> <LoginEmail>string</LoginEmail> <Password>string</Password> <AppName>string</AppName> <ProviderName>string</ProviderName> <PlatformName>string</PlatformName> <SubscriberEmailOrPhone>string</SubscriberEmailOrPhone> <DeviceID>string</DeviceID> <AreNotificationsEnabled>boolean</AreNotificationsEnabled> </SubscribeMobileAppPush> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SubscribeMobileAppPushResponse xmlns="http://service.reasonablespread.com/"> <SubscribeMobileAppPushResult>string</SubscribeMobileAppPushResult> </SubscribeMobileAppPushResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /service.asmx HTTP/1.1 Host: service.rspread.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <SubscribeMobileAppPush xmlns="http://service.reasonablespread.com/"> <LoginEmail>string</LoginEmail> <Password>string</Password> <AppName>string</AppName> <ProviderName>string</ProviderName> <PlatformName>string</PlatformName> <SubscriberEmailOrPhone>string</SubscriberEmailOrPhone> <DeviceID>string</DeviceID> <AreNotificationsEnabled>boolean</AreNotificationsEnabled> </SubscribeMobileAppPush> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <SubscribeMobileAppPushResponse xmlns="http://service.reasonablespread.com/"> <SubscribeMobileAppPushResult>string</SubscribeMobileAppPushResult> </SubscribeMobileAppPushResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /service.asmx/SubscribeMobileAppPush?LoginEmail=string&Password=string&AppName=string&ProviderName=string&PlatformName=string&SubscriberEmailOrPhone=string&DeviceID=string&AreNotificationsEnabled=string HTTP/1.1 Host: service.rspread.com
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://service.reasonablespread.com/">string</string>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /service.asmx/SubscribeMobileAppPush HTTP/1.1 Host: service.rspread.com Content-Type: application/x-www-form-urlencoded Content-Length: length LoginEmail=string&Password=string&AppName=string&ProviderName=string&PlatformName=string&SubscriberEmailOrPhone=string&DeviceID=string&AreNotificationsEnabled=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://service.reasonablespread.com/">string</string>