Test Devices

post
/createTestDevice

https://cp.pushwoosh.com/json/1.3/createTestDevice
Registers a test device for the application.
Request
Response
Body Parameters
application
required
string
Pushwoosh application code.
push_token
required
string
Push token of the device.
device_type
required
integer
Device type. See possible values in /registerDevice method.
language
optional
string
Language locale for the device. Must be a lowercase two-letter code according to ISO-639-1 standard.
name
required
string
Test device name.
description
optional
string
Test device description.
200: OK
{
"status_code":200,
"status_message":"OK",
"response": null
}

For Private Offering subscriptions only.

Example
{
"request": {
"application": "XXXXX-XXXXX", // Pushwoosh application code
"push_token": "DEVICE_PUSH_TOKEN",
"device_type": 1,
"language": "en", // language locale of the device
"name": "TEST_DEVICE_1", // test device name
"description": "android test device" // test device description
}
}

post
/listTestDevices

https://cp.pushwoosh.com/json/1.3/listTestDevices
Returns all the test devices for the specific application.
Request
Response
Body Parameters
auth
required
string
API access token from Pushwoosh Control Panel.
application
required
string
Pushwoosh application code.
200: OK
{
"status_code": 200,
"status_message": "OK",
"response": {
"TestDevices": [
{
"name": "iosDevice",
"type": "1",
"pushtoken": "token",
"description": "ios device",
"languages": [
"en",
"fr"
]
}
}

For Private Offering subscriptions only.

Example
{
"request":{
"auth": "yxoPUlwqm…………pIyEX4H", // API access token from Pushwoosh Control Panel
"application" : "XXXXX-XXXXX" // Pushwoosh application code
}
}

For device types see /registerDevice.