POST ProviderComm/Device

Send Device information to the server.

Request Information

URI Parameters

None.

Body Parameters

The device information

ParaDevice
NameDescriptionTypeAdditional information
DeviceTypeCodeId

integer

None.

AppleDevice

ParaAppleDevice

None.

AndroidDevice

ParaAndroidDevice

None.

WEYIDevice

ParaWEYIDevice

None.

FCMDevice

ParaFCMDevice

None.

CountryCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceTypeCodeId": 1,
  "AppleDevice": {
    "AppleDeviceToken": "sample string 1"
  },
  "AndroidDevice": {
    "AndroidDeviceToken": "sample string 1"
  },
  "WEYIDevice": {
    "WEYIDeviceToken": "sample string 1"
  },
  "FCMDevice": {
    "FCMDeviceToken": "sample string 1"
  },
  "CountryCode": "sample string 2"
}

application/xml, text/xml

Sample:
<ParaDevice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
  <AndroidDevice>
    <AndroidDeviceToken>sample string 1</AndroidDeviceToken>
  </AndroidDevice>
  <AppleDevice>
    <AppleDeviceToken>sample string 1</AppleDeviceToken>
  </AppleDevice>
  <CountryCode>sample string 2</CountryCode>
  <DeviceTypeCodeId>1</DeviceTypeCodeId>
  <FCMDevice>
    <FCMDeviceToken>sample string 1</FCMDeviceToken>
  </FCMDevice>
  <WEYIDevice>
    <WEYIDeviceToken>sample string 1</WEYIDeviceToken>
  </WEYIDevice>
</ParaDevice>

Response Information

Resource Description

Device Id assigned by the system

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>