GET api/devices/{ID}/{actionType}/{deviceType}/{deviceID}/{rowID}

Add/remove seller device ID for push notifications

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ID

ID сессии или ID пользователя (получается при логине)

string

Required

actionType

Тип действия ("register" - добавить по ID сессии, "register2" - добавить по ID пользователя, "unregister" - удалить удалить по ID сессии, "unregister2" - удалить по ID пользователя)

string

Required

deviceType

Тип девайса (0 - Android, 2 - iOSv2)

integer

Required

deviceID

ID девайса

string

Required

rowID

ID записи в таблице (если не известне - 0)

integer

Required

Body Parameters

None.

Response Information

Resource Description

DevicesResponse
NameDescriptionTypeAdditional information
retval

Return code (0 - ok, otherwise - error)

integer

None.

desc

Text description of the return code (error description)

string

None.

rowid

Table record ID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "retval": 1,
  "desc": "sample string 2",
  "rowid": 3
}

application/xml, text/xml

Sample:
<devices.response>
  <retval>1</retval>
  <desc>sample string 2</desc>
  <rowid>3</rowid>
</devices.response>