ข้ามไปยังเนื้อหา

Tags API

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

สร้าง tag ในบัญชีของคุณ

Request body

Anchor link to
ชื่อประเภทคำอธิบาย
auth*stringAPI access token จาก Pushwoosh Control Panel
tag*objectพารามิเตอร์ของ Tag
tag.name*stringชื่อ Tag
tag.type*integerประเภท Tag ดูค่าที่เป็นไปได้ด้านล่าง
tag.application_specificbooleanกำหนดว่าค่า tag ควรแตกต่างกันสำหรับหลายแอป หรือเหมือนกันในทุกแอป
{
"status_code": 200,
"status_message": "OK",
"response": {
"result": true
}
}
Example
{
"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”

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

ลบ tag และข้อมูลที่เกี่ยวข้องทั้งหมดออกจากฐานข้อมูลอย่างสมบูรณ์

Request body

Anchor link to
ชื่อประเภทคำอธิบาย
auth*stringAPI access token จาก Pushwoosh Control Panel
tag*objectพารามิเตอร์ของ Tag
tag.name*stringชื่อของ tag ที่ต้องการลบ
{
"status_code": 200,
"status_message": "OK",
"response": {
"result": true
}
}
Example
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required. API access token from Pushwoosh Control Panel
"tag": {
"name": "TAG_NAME" // required. Name of a tag to delete
}
}
}

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

ดึงรายการ tags ในบัญชี

Request body

Anchor link to
ชื่อประเภทคำอธิบาย
auth*stringAPI 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
}]
}
}
Example
{
"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”