Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

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:

Блок кода
languagejs
{
	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)

Блок кода
languagebash
http://ui.getintent.com/api/v1/<object_type>/<action>(/<id>)?token=<token>

...

Блок кода
languagejs
titleExample of API JSON output in case page, page_limit params are envolvedpagination mode
{
    "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
    }
}

...