Skip to content

Test devices API

createTestDevice

Registers a test device for the application.

POST https://api.pushwoosh.com/json/1.3/createTestDevice

Request Body

NameTypeDescription
application*stringPushwoosh application code.
push_token*stringPush token of the device.
device_type*integerDevice type. See possible values in /registerDevice method.
name*stringTest device name.
descriptionstringTest device description.
{
"status_code": 200,
"status_message": "OK",
"response": null
}
Example
{
"request": {
"application": "XXXXX-XXXXX", // required. Pushwoosh application code
"push_token": "DEVICE_PUSH_TOKEN", // required.
"device_type": 1, // required. Refer to /registerDevice for device types
"name": "TEST_DEVICE_1", // required. Test device name
"description": "android test device" // optional. Test device description
}
}

listTestDevices

Returns all the test devices for the specific application.

POST https://api.pushwoosh.com/json/1.3/listTestDevices

Request Body

NameTypeDescription
auth*stringAPI access token from Pushwoosh Control Panel.
application*stringPushwoosh application code.
{
"status_code": 200,
"status_message": "OK",
"response": {
"TestDevices": [{
"name": "iosDevice",
"type": "1",
"pushtoken": "token",
"description": "ios device"
}]
}
}
Example
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required. API access token from Pushwoosh Control Panel
"application": "XXXXX-XXXXX" // required. Pushwoosh application code
}
}

For device types see /registerDevice.