콘텐츠로 건너뛰기

캠페인 API

createCampaign

Anchor link to

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

앱 내에서 푸시 캠페인을 생성합니다.

요청 본문

Anchor link to
이름유형설명
auth*stringPushwoosh Control Panel 의 API access token.
application*stringPushwoosh application code
name*string캠페인 이름.
descriptionstring캠페인 설명.
{
"status_code": 200,
"status_message": "OK",
"response": {
"campaign": "XXXXX-XXXXX"
}
}
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // 필수. Pushwoosh Control Panel 의 API access token
"application": "XXXXX-XXXXX", // 필수. Pushwoosh application code
"name": "CAMPAIGN_NAME", // 필수.
"description": "CAMPAIGN_DESCRIPTION" // 선택 사항.
}
}

deleteCampaign

Anchor link to

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

특정 캠페인을 삭제합니다.

요청 본문

Anchor link to
이름유형설명
auth*stringPushwoosh Control Panel 의 API access token.
campaign*string삭제할 캠페인 코드.
{
"status_code": 200,
"status_message": "OK",
"response": null
}
Example
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // 필수. Pushwoosh Control Panel 의 API access token
"campaign": "XXXXX-XXXXX" // 필수. 삭제할 캠페인의 ID
}
}

getCampaigns

Anchor link to

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

앱의 캠페인 목록을 검색합니다.

요청 본문

Anchor link to
이름유형설명
auth*stringPushwoosh Control Panel 의 API access token.
application*stringPushwoosh application code
cursorstring이전 요청에서 검색된 마지막 캠페인을 나타냅니다.
limitinteger단일 응답에 대한 최대 캠페인 수입니다.
{
"status_code": 200,
"status_message": "OK",
"response": {
"campaigns": [{
"code": "7CFF3-63A7B",
"name": "CAMPAIGN_NAME_1",
"description": "DESCRIPTION1"
}, {
"code": "C284C-33DD3",
"name": "CAMPAIGN_NAME_2",
"description": "DESCRIPTION2"
}],
"limit": 100,
"cursor": "+4PxJPhhwITD4PFsiKui1BA=="
}
}
Example
{
"request": {
"auth": "jLbec2UW........ztFSOf5Za", // 필수. Pushwoosh Control Panel 의 API access token
"application": "XXXXX-XXXXX", // 필수. Pushwoosh application code
"cursor": "+4PxJPhhwITD4PFsiKui1BA==", // 선택 사항. 이전 요청에서 검색된 마지막 캠페인을 나타냅니다.
"limit": 100 // 선택 사항. 단일 응답에 대한 최대 캠페인 수.
}
}