Zum Inhalt springen

Tags API

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

Erstellt einen Tag in Ihrem Konto.

Request body

Anchor link to
NameTypBeschreibung
auth*stringAPI-Zugriffstoken aus dem Pushwoosh Control Panel.
tag*objectTag-Parameter.
tag.name*stringTag-Name.
tag.type*integerTag-Typ. Siehe mögliche Werte unten.
tag.application_specificbooleanDefiniert, ob der Tag-Wert für mehrere Apps unterschiedlich sein soll oder über mehrere Apps hinweg gleich sein soll.
{
"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
}
}
}

Mögliche Tag-Wert-Typen:

  • 1 - Integer (Ganzzahl)
  • 2 - String (Zeichenkette)
  • 3 - List (Liste)
  • 4 - Date (Datum)
  • 5 - Boolean (Boolesch)
  • 6 - Decimal (Dezimal). Bsp.: 19.95
  • 7 - Version. Bsp.: “1.0.0.0”

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

Entfernt einen Tag mit allen zugehörigen Informationen vollständig aus der Datenbank.

Request body

Anchor link to
NameTypBeschreibung
auth*stringAPI-Zugriffstoken aus dem Pushwoosh Control Panel.
tag*objectTag-Parameter.
tag.name*stringName eines zu löschenden Tags.
{
"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

Ruft eine Liste der Tags im Konto ab.

Request body

Anchor link to
NameTypBeschreibung
auth*stringAPI-Zugriffstoken aus dem 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-Typen:

  • 1 - Integer (Ganzzahl)
  • 2 - String (Zeichenkette)
  • 3 - List (Liste)
  • 4 - Date (Datum)
  • 5 - Boolean (Boolesch)
  • 6 - Decimal (Dezimal). Bsp.: 19.95
  • 7 - Version. Bsp.: “1.0.0.0”