콘텐츠로 건너뛰기

테스트 디바이스 API

createTestDevice

Anchor link to

애플리케이션에 테스트 디바이스를 등록합니다.

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

Request Body

Anchor link to
NameTypeDescription
application*stringPushwoosh 애플리케이션 코드
push_token*string디바이스의 Push token.
device_type*integerDevice type. /registerDevice 메서드에서 가능한 값을 참조하십시오.
name*string테스트 디바이스 이름.
descriptionstring테스트 디바이스 설명.
{
"status_code": 200,
"status_message": "OK",
"response": null
}
Example
{
"request": {
"application": "XXXXX-XXXXX", // 필수. Pushwoosh 애플리케이션 코드
"push_token": "DEVICE_PUSH_TOKEN", // 필수.
"device_type": 1, // 필수. 디바이스 유형은 /registerDevice 를 참조하십시오
"name": "TEST_DEVICE_1", // 필수. 테스트 디바이스 이름
"description": "android test device" // 선택 사항. 테스트 디바이스 설명
}
}

listTestDevices

Anchor link to

특정 애플리케이션에 대한 모든 테스트 디바이스를 반환합니다.

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

Request Body

Anchor link to
NameTypeDescription
auth*stringPushwoosh Control Panel 의 API access token.
application*stringPushwoosh 애플리케이션 코드
{
"status_code": 200,
"status_message": "OK",
"response": {
"TestDevices": [{
"name": "iosDevice",
"type": "1",
"pushtoken": "token",
"description": "ios device"
}]
}
}
Example
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // 필수. Pushwoosh Control Panel 의 API access token
"application": "XXXXX-XXXXX" // 필수. Pushwoosh 애플리케이션 코드
}
}

디바이스 유형은 /registerDevice 를 참조하십시오.