Tags API
addTag
Anchor link toPOST https://api.pushwoosh.com/json/1.3/addTag
आपके खाते में एक टैग बनाता है।
Request body
Anchor link to| Name | Type | Description |
|---|---|---|
| auth* | string | Pushwoosh Control Panel से API access token। |
| tag* | object | टैग पैरामीटर। |
| tag.name* | string | टैग का नाम। |
| tag.type* | integer | टैग का प्रकार। नीचे संभावित मान देखें। |
| tag.application_specific | boolean | यह परिभाषित करता है कि टैग मान कई ऐप्स के लिए अलग होना चाहिए या कई ऐप्स में समान होना चाहिए। |
{ "status_code": 200, "status_message": "OK", "response": { "result": true }}{ "request": { "auth": "yxoPUlwqm…………pIyEX4H", // आवश्यक। Pushwoosh Control Panel से API access token "tag": { "name": "TAG_NAME", // आवश्यक। "type": 1, // आवश्यक। नीचे संभावित मान देखें "application_specific": true, // वैकल्पिक। परिभाषित करता है कि क्या टैग मान कई ऐप्स के लिए // अलग होना चाहिए या कई ऐप्स में समान होना चाहिए "user_specific": true // वैकल्पिक। application_specific टैग के लिए उपयोग किया जाता है } }}संभावित टैग मान प्रकार (Possible tag value types):
- 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
डेटाबेस से सभी संबंधित जानकारी के साथ टैग को पूरी तरह से हटा देता है।
Request body
Anchor link to| Name | Type | Description |
|---|---|---|
| auth* | string | Pushwoosh Control Panel से API access token। |
| tag* | object | टैग पैरामीटर। |
| tag.name* | string | हटाने के लिए टैग का नाम। |
{ "status_code": 200, "status_message": "OK", "response": { "result": true }}{ "request": { "auth": "yxoPUlwqm…………pIyEX4H", // आवश्यक। Pushwoosh Control Panel से API access token "tag": { "name": "TAG_NAME" // आवश्यक। हटाने के लिए टैग का नाम } }}listTags
Anchor link toPOST https://api.pushwoosh.com/json/1.3/listTags
खाते पर टैग की सूची प्राप्त करता है।
Request body
Anchor link to| Name | Type | Description |
|---|---|---|
| auth* | string | Pushwoosh Control Panel से API access token। |
{ "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" // Pushwoosh Control Panel से API access token }}टैग के प्रकार (Tag types):
- 1 - Integer (पूर्णांक)
- 2 - String (स्ट्रिंग)
- 3 - List (सूची)
- 4 - Date (दिनांक)
- 5 - Boolean (बूलियन)
- 6 - Decimal (दशमलव)। उदाहरण: 19.95
- 7 - Version (संस्करण)। उदाहरण: “1.0.0.0”