Get resource information
Description
Retrieves detailed information about a single resource, including channels and associated databases.
Request URL
Method: POST
https://example.com/api/v1.1/resources/get
Request parameters
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
format | string | "json" | No | Response data format. By default – json |
id | int | 1 | Yes | Resource ID |
Request example
- JSON
- XML
{
"id": 1,
"token": "abcdefghijklmnqrstuvwxyz"
}
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<id>1</id>
<token>abcdefghijklmnqrstuvwxyz</token>
</xml>
Response example
- JSON
- XML
{
"data": {
"channels": ["email", "push"],
"dbs_ids": [1],
"id": 1,
"name": "Resource",
"trk_domain": "tracking.example.com",
"url": "https://blog.example:8080"
},
"error": 0,
"error_text": "Successful operation"
}
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<data>
<channels>email</channels>
<channels>push</channels>
<dbs_ids>1</dbs_ids>
<id>1</id>
<name>Resource</name>
<trk_domain>tracking.example.com</trk_domain>
<url>https://blog.example:8080</url>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>
Response parameters
Parameter | Type | Description |
---|---|---|
error | int | Error code |
error_text | string | Error text |
channel | JSON array | Enabled channels |
dbs_ids | JSON array | Associated databases |
id | int | Resource ID |
name | string | Resource name |
trk_domain | string | Subscribers actions tracking domain |
url | string | Resource URL |