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

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
}

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*

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"
 }
} 

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