Test Devices API

List of methods for working with test devices

createTestDevice

Registers a test device for the application.

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

Registers a test device for the application.

Request Body

NameTypeDescription

application*

string

Pushwoosh application code.

push_token*

string

Push token of the device.

device_type*

integer

Device type. See possible values in /registerDevice method.

name*

string

Test device name.

description

string

Test device description.

{
   "status_code":200,
   "status_message":"OK",
   "response": null
}

For Custom Plan subscriptions only. For more details, please contact our Sales team.

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

Returns all the test devices for the specific application.

Request Body

NameTypeDescription

auth*

string

API access token from Pushwoosh Control Panel.

application*

string

Pushwoosh application code.

{
 "status_code": 200,
 "status_message": "OK",
 "response": {
 "TestDevices": [
  {
    "name": "iosDevice",
    "type": "1",
    "pushtoken": "token",
    "description": "ios device"
 }
} 

For Custom Plan subscriptions only. For more details, please contact our Sales team.

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.

Last updated

#1685:

Change request updated