Tags API
addTag
Anchor link toPOST https://api.pushwoosh.com/json/1.3/addTag
Erstellt einen Tag in Ihrem Konto.
Request body
Anchor link to| Name | Typ | Beschreibung |
|---|---|---|
| auth* | string | API-Zugriffstoken aus dem Pushwoosh Control Panel. |
| tag* | object | Tag-Parameter. |
| tag.name* | string | Tag-Name. |
| tag.type* | integer | Tag-Typ. Siehe mögliche Werte unten. |
| tag.application_specific | boolean | Definiert, 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 }}{ "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”
deleteTag
Anchor link toPOST 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| Name | Typ | Beschreibung |
|---|---|---|
| auth* | string | API-Zugriffstoken aus dem Pushwoosh Control Panel. |
| tag* | object | Tag-Parameter. |
| tag.name* | string | Name eines zu löschenden Tags. |
{ "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
Ruft eine Liste der Tags im Konto ab.
Request body
Anchor link to| Name | Typ | Beschreibung |
|---|---|---|
| auth* | string | API-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 }] }}{ "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”