...
API is built as JSON RESTful service and support standard GET/PUT/DELETE methods . Each API object over HTTP 1.1 protocol. API endpoint is RTBSuite UI hostname.
RTB data model contains several entities, each entity has it’s own JSON representation . Each JSON entity object has a with name and an id:
| Блок кода | ||
|---|---|---|
| ||
{
id: 1,
name: "<name>",
...
} |
...
The general URL API pattern is (ui.getintent.com should be replaced by proper UI hostname - each RTBSuite project has a built in UI) :
| Блок кода | ||
|---|---|---|
| ||
http://ui.getintent.com/api/v1/<object_type>/<action>(/<id>)?token=<token> |
...
| Блок кода | ||||
|---|---|---|---|---|
| ||||
{
"data": {
"921": {
"id": "921",
"name": "test_campaign"
},
"1400": {
"id": "1400",
"name": "1"
}
},
"pages": {
"total_elements": "6",
"total_pages": 3,
"current_page": 1,
"previous_page": false,
"next_page": 2,
"page_size": 2,
"offset": 0
}
} |
...