Tags API
addTag
Anchor link toPOST https://api.pushwoosh.com/json/1.3/addTag
สร้าง tag ในบัญชีของคุณ
Request body
Anchor link to| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
| auth* | string | API access token จาก Pushwoosh Control Panel |
| tag* | object | พารามิเตอร์ของ Tag |
| tag.name* | string | ชื่อ Tag |
| tag.type* | integer | ประเภท Tag ดูค่าที่เป็นไปได้ด้านล่าง |
| tag.application_specific | boolean | กำหนดว่าค่า tag ควรแตกต่างกันสำหรับหลายแอป หรือเหมือนกันในทุกแอป |
{ "status_code": 200, "status_message": "OK", "response": { "result": true }}{ "request": { "auth": "yxoPUlwqm…………pIyEX4H", // required. API access token from Pushwoosh Control Panel "tag": { "name": "TAG_NAME", // required. "type": 1, // required. See possible values below "application_specific": true, // optional. Defines whether the tag value should be different // for multiple apps or be the same across multiple apps "user_specific": true // optional. Used for application_specific tags } }}ประเภทค่า Tag ที่เป็นไปได้:
- 1 - Integer
- 2 - String
- 3 - List
- 4 - Date
- 5 - Boolean
- 6 - Decimal ตัวอย่าง: 19.95
- 7 - Version ตัวอย่าง: “1.0.0.0”
deleteTag
Anchor link toPOST https://api.pushwoosh.com/json/1.3/deleteTag
ลบ tag และข้อมูลที่เกี่ยวข้องทั้งหมดออกจากฐานข้อมูลอย่างสมบูรณ์
Request body
Anchor link to| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
| auth* | string | API access token จาก Pushwoosh Control Panel |
| tag* | object | พารามิเตอร์ของ Tag |
| tag.name* | string | ชื่อของ tag ที่ต้องการลบ |
{ "status_code": 200, "status_message": "OK", "response": { "result": true }}{ "request": { "auth": "yxoPUlwqm…………pIyEX4H", // required. API access token from Pushwoosh Control Panel "tag": { "name": "TAG_NAME" // required. Name of a tag to delete } }}listTags
Anchor link toPOST https://api.pushwoosh.com/json/1.3/listTags
ดึงรายการ tags ในบัญชี
Request body
Anchor link to| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
| auth* | string | API access token จาก Pushwoosh Control Panel |
{ "status_code": 200, "status_message": "OK", "response": { "tags": [{ "name":"Language", "type":2, "isApplicationSpecific": false }, { "name":"List tag", "type":3, "isApplicationSpecific": false }] }}{ "request":{ "auth": "yxoPUlwqm…………pIyEX4H" // API access token from Pushwoosh Control Panel }}ประเภท Tag:
- 1 - Integer
- 2 - String
- 3 - List
- 4 - Date
- 5 - Boolean
- 6 - Decimal ตัวอย่าง: 19.95
- 7 - Version ตัวอย่าง: “1.0.0.0”