-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
396 lines (391 loc) · 104 KB
/
index.html
File metadata and controls
396 lines (391 loc) · 104 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
<!DOCTYPE HTML><html><head><title>ProstoTV API documentation</title><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="generator" content="https://github.com/raml2html/raml2html 7.2.1"><link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"><script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script><script type="text/javascript" src="https://netdna.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script><script type="text/javascript">
$(document).ready(function() {
$('.page-header pre code, .top-resource-description pre code, .modal-body pre code').each(function(i, block) {
hljs.highlightBlock(block);
});
$('[data-toggle]').click(function() {
var selector = $(this).data('target') + ' pre code';
$(selector).each(function(i, block) {
hljs.highlightBlock(block);
});
});
// open modal on hashes like #_action_get
$(window).bind('hashchange', function(e) {
var anchor_id = document.location.hash.substr(1); //strip #
var element = $('#' + anchor_id);
// do we have such element + is it a modal? --> show it
if (element.length && element.hasClass('modal')) {
element.modal('show');
}
});
// execute hashchange on first page load
$(window).trigger('hashchange');
// remove url fragment on modal hide
$('.modal').on('hidden.bs.modal', function() {
try {
if (history && history.replaceState) {
history.replaceState({}, '', '#');
}
} catch(e) {}
});
});
</script><style>
.hljs {
background: transparent;
}
.parent {
color: #999;
}
.list-group-item > .badge {
float: none;
margin-right: 6px;
}
.panel-title > .methods {
float: right;
}
.badge {
border-radius: 0;
text-transform: uppercase;
width: 70px;
font-weight: normal;
color: #f3f3f6;
line-height: normal;
}
.badge_get {
background-color: #63a8e2;
}
.badge_post {
background-color: #6cbd7d;
}
.badge_put {
background-color: #22bac4;
}
.badge_delete {
background-color: #d26460;
}
.badge_patch {
background-color: #ccc444;
}
.list-group,
.panel-group {
margin-bottom: 0;
}
.panel-group .panel+.panel-white {
margin-top: 0;
}
.panel-group .panel-white {
border-bottom: 1px solid #F5F5F5;
border-radius: 0;
}
.panel-white:last-child {
border-bottom-color: white;
-webkit-box-shadow: none;
box-shadow: none;
}
.panel-white .panel-heading {
background: white;
}
.tab-pane ul {
padding-left: 2em;
}
.tab-pane h1 {
font-size: 1.3em;
}
.tab-pane h2 {
font-size: 1.2em;
padding-bottom: 4px;
border-bottom: 1px solid #ddd;
}
.tab-pane h3 {
font-size: 1.1em;
}
.tab-content {
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
padding: 10px;
}
#sidebar {
margin-top: 30px;
padding-right: 5px;
overflow: auto;
height: 90%;
}
.top-resource-description {
border-bottom: 1px solid #ddd;
background: #fcfcfc;
padding: 15px 15px 0 15px;
margin: -15px -15px 10px -15px;
}
.resource-description {
border-bottom: 1px solid #fcfcfc;
background: #fcfcfc;
padding: 15px 15px 0 15px;
margin: -15px -15px 10px -15px;
}
.resource-description p:last-child {
margin: 0;
}
.list-group .badge {
float: left;
}
.method_description {
margin-left: 85px;
}
.method_description p:last-child {
margin: 0;
}
.list-group-item {
cursor: pointer;
}
.list-group-item:hover {
background-color: #f5f5f5;
}
pre code {
overflow: auto;
word-wrap: normal;
white-space: pre;
}
.items {
background: #f5f5f5;
color: #333;
border: 1px solid #ccc;
border-radius: 4px;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
}
.examples {
margin-left: 0.5em;
}
.resource-modal li > ul {
margin-bottom: 1em;
}
</style></head><body data-spy="scroll" data-target="#sidebar"><div class="container"><div class="row"><div class="col-md-9" role="main"><div class="page-header"><h1>ProstoTV API documentation <small>version 1</small></h1><p>https://api.prosto.tv/v1</p></div><div class="panel panel-default"><div class="panel-heading"><h3 id="objects" class="panel-title">/objects</h3></div><div class="panel-body"><div class="panel-group"><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects"><span class="parent"></span>/objects</a> <span class="methods"><a href="#objects_post"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects_post'" class="list-group-item"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Добавление пользователя</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects_post"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent"></span>/objects</h4></div><div class="modal-body"><div class="alert alert-info"><p>Добавление пользователя</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects_post_request" data-toggle="tab">Request</a></li><li><a href="#objects_post_response" data-toggle="tab">Response</a></li><li><a href="#objects_post_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects_post_request"><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>first_name</strong>: <em>(string)</em></li><li><strong>middle_name</strong>: <em>(string)</em></li><li><strong>last_name</strong>: <em>(string)</em></li><li><strong>note</strong>: <em>(string)</em></li><li><strong>phone</strong>: <em>(string)</em></li><li><strong>password</strong>: <em>(string)</em></li></ul></div><div class="tab-pane" id="objects_post_response"><h2>HTTP status code <a href="http://httpstatus.es/201" target="_blank">201</a></h2><p>Пользователь добавлен</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": 123456,
"password": 12345678,
"status": "active",
"balance": 0,
"bonus": 0,
"ebs_url": 'https://{ebs_url}/{object_id}/more/services',
"bundles": [],
"services": [],
"devices": [],
"playlists": []
}
</code></pre></div></div><div class="tab-pane" id="objects_post_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id_"><span class="parent">/objects</span>/{account_id}</a> <span class="methods"><a href="#objects__account_id__get"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a> <a href="#objects__account_id__delete"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id_" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__get'" class="list-group-item"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Получение данных пользователя</p></div><div class="clearfix"></div></div><div onclick="window.location.href = '#objects__account_id__delete'" class="list-group-item"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Удаление учетки</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__get"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects</span>/{account_id}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Получение данных пользователя</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__get_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__get_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__get_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__get_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul></div><div class="tab-pane" id="objects__account_id__get_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>id</strong>: <em>required (integer)</em></li><li><strong>status</strong>: <em>required (none)</em></li><li><strong>balance</strong>: <em>required (number)</em></li><li><strong>bonus</strong>: <em>required (number)</em></li><li><strong>contacts</strong>: <em>required (array)</em></li><li><strong>date_create</strong>: <em>required (string)</em></li><li><strong>bundles</strong>: <em>required (array)</em></li><li><strong>services</strong>: <em>required (array)</em></li><li><strong>devices</strong>: <em>required (array)</em></li><li><strong>playlists</strong>: <em>required (array)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": 123456,
"status": "active",
"balance": 0,
"bonus": 0,
"ebs_url": 'https://{ebs_url}/{object_id}/more/services',
"contacts": [ "012 3456789", "098 7654321"...]
"date_create": "2015-02-08"
"bundles": [
{
"id": 40,
"main": 1,
"bundles": [],
"name_ru": "Украина",
"name_uk": "Україна",
"channels_count": 38,
"cost": 39
},
{
"id": 50,
"main": 1,
"bundles": [40],
"name_ru": "Вселенная",
"name_uk": "Всесвіт"
"channels_count": 144,
"cost": 79
}
],
"services": [
{
"id": 50,
"created": "2018-11-01 01:00:14",
"name_ru": "IPTV Вселенная",
"name_uk": "IPTV Всесвіт",
"active": 1,
"auto_renewal": 1,
"cost": 79,
"main": 1,
"channels_count": 144,
"bundles": [40],
"stop": "2019-01-01"
}
],
"devices": [
{
"id": "123456_3",
"created": "2018-11-01 02:01:04",
"updated": "2018-12-08 19:54:17",
"password": "520630",
"device": "M01PR100",
"comment": "Телевизор на кухне"
}
],
"playlists": [
{
"id": "secret",
"created": "2018-12-01 12:14:34",
"updated": "2018-12-08 19:54:17",
"genres": 1,
"comment": "Домашний ПК",
"ip": "90.100.110.120",
"url": "http://my.prosto.tv/secret.m3u"
}
]
}
</code></pre></div></div><div class="tab-pane" id="objects__account_id__get_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__delete"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects</span>/{account_id}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Удаление учетки</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__delete_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__delete_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__delete_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__delete_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul></div><div class="tab-pane" id="objects__account_id__delete_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>Учетка удалена</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": "123456",
"status": "deleted"
}
</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/305" target="_blank">305</a></h2><p>Учетка удалена не полностью</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/404" target="_blank">404</a></h2><p>Учетка уже удалена</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__delete_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__devices"><span class="parent">/objects/{account_id}</span>/devices</a> <span class="methods"><a href="#objects__account_id__devices_get"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a> <a href="#objects__account_id__devices_post"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__devices" class="panel-collapse collapse"><div class="panel-body"><div class="resource-description"><p>Работа с устройствами</p></div><div class="list-group"><div onclick="window.location.href = '#objects__account_id__devices_get'" class="list-group-item"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Получение списка всех устройств</p></div><div class="clearfix"></div></div><div onclick="window.location.href = '#objects__account_id__devices_post'" class="list-group-item"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Добавление устройства</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__devices_get"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}</span>/devices</h4></div><div class="modal-body"><div class="alert alert-info"><p>Получение списка всех устройств</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__devices_get_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__devices_get_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__devices_get_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__devices_get_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul></div><div class="tab-pane" id="objects__account_id__devices_get_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>devices</strong>: <em>required (array of object)</em><p><strong>Items</strong>: Device</p><div class="items"><ul><li><strong>id</strong>: <em>required (string)</em></li><li><strong>created</strong>: <em>required (string)</em></li><li><strong>updated</strong>: <em>required (string)</em></li><li><strong>login</strong>: <em>required (string)</em></li><li><strong>password</strong>: <em>required (string)</em></li><li><strong>device</strong>: <em>required (string)</em></li><li><strong>comment</strong>: <em>required (string)</em></li><li><strong>playlist_id</strong>: <em>required (integer)</em></li></ul></div><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": "xxxxxx_x",
"created": "2020-03-25 15:49:07",
"updated": "2020-03-25 15:50:19",
"login": "xxxxxx_x",
"password": "xxxxxx",
"device": "",
"comment": "",
"playlist_id": 123
}</code></pre></div></li></ul></div><div class="tab-pane" id="objects__account_id__devices_get_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__devices_post"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}</span>/devices</h4></div><div class="modal-body"><div class="alert alert-info"><p>Добавление устройства</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__devices_post_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__devices_post_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__devices_post_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__devices_post_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul></div><div class="tab-pane" id="objects__account_id__devices_post_response"><h2>HTTP status code <a href="http://httpstatus.es/201" target="_blank">201</a></h2><p>Устройство добавлено</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>id</strong>: <em>required (string)</em></li><li><strong>created</strong>: <em>required (string)</em></li><li><strong>updated</strong>: <em>required (string)</em></li><li><strong>login</strong>: <em>required (string)</em></li><li><strong>password</strong>: <em>required (string)</em></li><li><strong>device</strong>: <em>required (string)</em></li><li><strong>comment</strong>: <em>required (string)</em></li><li><strong>playlist_id</strong>: <em>required (integer)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": "xxxxxx_x",
"created": "2020-03-25 15:49:07",
"updated": "2020-03-25 15:50:19",
"login": "xxxxxx_x",
"password": "xxxxxx",
"device": "",
"comment": "",
"playlist_id": 123
}</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/406" target="_blank">406</a></h2><p>Достугнут лимит устройств</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__devices_post_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__devices__device_id_"><span class="parent">/objects/{account_id}/devices</span>/{device_id}</a> <span class="methods"><a href="#objects__account_id__devices__device_id__delete"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a> <a href="#objects__account_id__devices__device_id__put"><span class="badge badge_put">put <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__devices__device_id_" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__devices__device_id__delete'" class="list-group-item"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Удаление устройства</p></div><div class="clearfix"></div></div><div onclick="window.location.href = '#objects__account_id__devices__device_id__put'" class="list-group-item"><span class="badge badge_put">put <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Добавление комментария к устройству</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__devices__device_id__delete"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}/devices</span>/{device_id}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Удаление устройства</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__devices__device_id__delete_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__devices__device_id__delete_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__devices__device_id__delete_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__devices__device_id__delete_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li><li><strong>device_id</strong>: <em>required (string)</em><p>Идентификатор (логин) устройства</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>000000_0</code></pre></div></li></ul></div><div class="tab-pane" id="objects__account_id__devices__device_id__delete_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>Устройство удалено</p><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Некорректный запрос</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/404" target="_blank">404</a></h2><p>Устройство не найдено</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__devices__device_id__delete_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__devices__device_id__put"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_put">put <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}/devices</span>/{device_id}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Добавление комментария к устройству</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__devices__device_id__put_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__devices__device_id__put_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__devices__device_id__put_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__devices__device_id__put_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li><li><strong>device_id</strong>: <em>required (string)</em><p>Идентификатор (логин) устройства</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>000000_0</code></pre></div></li></ul><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>comment</strong>: <em>(string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__devices__device_id__put_response"><h2>HTTP status code <a href="http://httpstatus.es/201" target="_blank">201</a></h2><p>Комментарий добавлено</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>id</strong>: <em>required (string)</em></li><li><strong>created</strong>: <em>required (string)</em></li><li><strong>updated</strong>: <em>required (string)</em></li><li><strong>login</strong>: <em>required (string)</em></li><li><strong>password</strong>: <em>required (string)</em></li><li><strong>device</strong>: <em>required (string)</em></li><li><strong>comment</strong>: <em>required (string)</em></li><li><strong>playlist_id</strong>: <em>required (integer)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": "xxxxxx_x",
"created": "2020-03-25 15:49:07",
"updated": "2020-03-25 15:50:19",
"login": "xxxxxx_x",
"password": "xxxxxx",
"device": "",
"comment": "",
"playlist_id": 123
}</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/204" target="_blank">204</a></h2><p>Не задан комментарий</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Неверный id устройства</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__devices__device_id__put_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__playlists"><span class="parent">/objects/{account_id}</span>/playlists</a> <span class="methods"><a href="#objects__account_id__playlists_get"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a> <a href="#objects__account_id__playlists_post"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__playlists" class="panel-collapse collapse"><div class="panel-body"><div class="resource-description"><p>Управление плейлистами</p></div><div class="list-group"><div onclick="window.location.href = '#objects__account_id__playlists_get'" class="list-group-item"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Получение списка всех плейлистов</p></div><div class="clearfix"></div></div><div onclick="window.location.href = '#objects__account_id__playlists_post'" class="list-group-item"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Добавление плейлиста</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__playlists_get"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}</span>/playlists</h4></div><div class="modal-body"><div class="alert alert-info"><p>Получение списка всех плейлистов</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__playlists_get_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__playlists_get_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__playlists_get_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__playlists_get_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul></div><div class="tab-pane" id="objects__account_id__playlists_get_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>playlists</strong>: <em>required (array of object)</em><p><strong>Items</strong>: Playlist</p><div class="items"><ul><li><strong>id</strong>: <em>required (string)</em></li><li><strong>created</strong>: <em>required (datetime)</em></li><li><strong>updated</strong>: <em>required (datetime)</em></li><li><strong>genres</strong>: <em>required (json)</em></li><li><strong>tv_guide</strong>: <em>required (json)</em></li><li><strong>comment</strong>: <em>required (string)</em></li><li><strong>ip</strong>: <em>required (string)</em></li><li><strong>url</strong>: <em>required (string)</em></li><li><strong>device_id</strong>: <em>required (string)</em></li><li><strong>password</strong>: <em>required (string)</em></li><li><strong>parent_control_start</strong>: <em>required (union of integer or nil)</em></li><li><strong>parent_control_end</strong>: <em>required (union of integer or nil)</em></li></ul></div><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": "xxxxxxxx",
"created": "2020-03-06 09:47:38",
"updated": "0000-00-00 00:00:00",
"genres": 1,
"tv_guide": 1,
"comment": "",
"ip": "",
"url": "http://my.prosto.tv/xxxxxxxx.m3u",
"device_id": "",
"password": "0000",
"parent_control_start": null,
"parent_control_end": null
}
</code></pre></div></li></ul></div><div class="tab-pane" id="objects__account_id__playlists_get_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__playlists_post"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}</span>/playlists</h4></div><div class="modal-body"><div class="alert alert-info"><p>Добавление плейлиста</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__playlists_post_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__playlists_post_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__playlists_post_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__playlists_post_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul></div><div class="tab-pane" id="objects__account_id__playlists_post_response"><h2>HTTP status code <a href="http://httpstatus.es/201" target="_blank">201</a></h2><p>Плейлист добавлен</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>id</strong>: <em>required (string)</em></li><li><strong>created</strong>: <em>required (datetime)</em></li><li><strong>updated</strong>: <em>required (datetime)</em></li><li><strong>genres</strong>: <em>required (json)</em></li><li><strong>tv_guide</strong>: <em>required (json)</em></li><li><strong>comment</strong>: <em>required (string)</em></li><li><strong>ip</strong>: <em>required (string)</em></li><li><strong>url</strong>: <em>required (string)</em></li><li><strong>device_id</strong>: <em>required (string)</em></li><li><strong>password</strong>: <em>required (string)</em></li><li><strong>parent_control_start</strong>: <em>required (union of integer or nil)</em></li><li><strong>parent_control_end</strong>: <em>required (union of integer or nil)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": "xxxxxxxx",
"created": "2020-03-06 09:47:38",
"updated": "0000-00-00 00:00:00",
"genres": 1,
"tv_guide": 1,
"comment": "",
"ip": "",
"url": "http://my.prosto.tv/xxxxxxxx.m3u",
"device_id": "",
"password": "0000",
"parent_control_start": null,
"parent_control_end": null
}
</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/406" target="_blank">406</a></h2><p>Достугнут лимит</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__playlists_post_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__playlists__playlist_id_"><span class="parent">/objects/{account_id}/playlists</span>/{playlist_id}</a> <span class="methods"><a href="#objects__account_id__playlists__playlist_id__delete"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a> <a href="#objects__account_id__playlists__playlist_id__put"><span class="badge badge_put">put <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__playlists__playlist_id_" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__playlists__playlist_id__delete'" class="list-group-item"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Удаление плейлиста</p></div><div class="clearfix"></div></div><div onclick="window.location.href = '#objects__account_id__playlists__playlist_id__put'" class="list-group-item"><span class="badge badge_put">put <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Добавление комментария, включение выключение группировки по жанрам</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__playlists__playlist_id__delete"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}/playlists</span>/{playlist_id}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Удаление плейлиста</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__playlists__playlist_id__delete_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__playlists__playlist_id__delete_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__playlists__playlist_id__delete_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__playlists__playlist_id__delete_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li><li><strong>playlist_id</strong>: <em>required (string)</em><p>Идентификатор (secret) плейлиста</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>xxxxxxxx</code></pre></div></li></ul></div><div class="tab-pane" id="objects__account_id__playlists__playlist_id__delete_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>Плейлист удален</p><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Некорректный запрос</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/404" target="_blank">404</a></h2><p>Плейлист не найден</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__playlists__playlist_id__delete_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__playlists__playlist_id__put"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_put">put <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}/playlists</span>/{playlist_id}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Добавление комментария, включение выключение группировки по жанрам</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__playlists__playlist_id__put_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__playlists__playlist_id__put_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__playlists__playlist_id__put_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__playlists__playlist_id__put_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li><li><strong>playlist_id</strong>: <em>required (string)</em><p>Идентификатор (secret) плейлиста</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>xxxxxxxx</code></pre></div></li></ul><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>comment</strong>: <em>(string)</em></li><li><strong>genres</strong>: <em>(0|1)</em></li><li><strong>tv_guide</strong>: <em>(0|1)</em></li><li><strong>available_mode</strong>: <em>(0|1)</em><p>Оставить в плейлисте только доступные каналы</p></li></ul></div><div class="tab-pane" id="objects__account_id__playlists__playlist_id__put_response"><h2>HTTP status code <a href="http://httpstatus.es/201" target="_blank">201</a></h2><p>Плейлист изменен</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>id</strong>: <em>required (string)</em></li><li><strong>created</strong>: <em>required (datetime)</em></li><li><strong>updated</strong>: <em>required (datetime)</em></li><li><strong>genres</strong>: <em>required (json)</em></li><li><strong>tv_guide</strong>: <em>required (json)</em></li><li><strong>comment</strong>: <em>required (string)</em></li><li><strong>ip</strong>: <em>required (string)</em></li><li><strong>url</strong>: <em>required (string)</em></li><li><strong>device_id</strong>: <em>required (string)</em></li><li><strong>password</strong>: <em>required (string)</em></li><li><strong>parent_control_start</strong>: <em>required (union of integer or nil)</em></li><li><strong>parent_control_end</strong>: <em>required (union of integer or nil)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": "xxxxxxxx",
"created": "2020-03-06 09:47:38",
"updated": "0000-00-00 00:00:00",
"genres": 1,
"tv_guide": 1,
"comment": "",
"ip": "",
"url": "http://my.prosto.tv/xxxxxxxx.m3u",
"device_id": "",
"password": "0000",
"parent_control_start": null,
"parent_control_end": null
}
</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Не указаны параметры</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/500" target="_blank">500</a></h2><p>Внутренняя ошибка</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__playlists__playlist_id__put_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__workoncredit"><span class="parent">/objects/{account_id}</span>/workoncredit</a> <span class="methods"><a href="#objects__account_id__workoncredit_post"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__workoncredit" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__workoncredit_post'" class="list-group-item"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Активация работы в кредит</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__workoncredit_post"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}</span>/workoncredit</h4></div><div class="modal-body"><div class="alert alert-info"><p>Активация работы в кредит</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__workoncredit_post_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__workoncredit_post_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__workoncredit_post_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__workoncredit_post_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul></div><div class="tab-pane" id="objects__account_id__workoncredit_post_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>Работа в кредит активирована</p><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Не удалось активировать услугу</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/402" target="_blank">402</a></h2><p>Активация услуги недоступна</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__workoncredit_post_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__operations"><span class="parent">/objects/{account_id}</span>/operations</a> <span class="methods"><a href="#objects__account_id__operations_post"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__operations" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__operations_post'" class="list-group-item"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Проведение операции</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__operations_post"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}</span>/operations</h4></div><div class="modal-body"><div class="alert alert-info"><p>Проведение операции</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__operations_post_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__operations_post_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__operations_post_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__operations_post_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>operation_id</strong>: <em>required (integer)</em></li><li><strong>sum</strong>: <em>required (number)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"operation_id": 20,
"sum": 120.0
}
</code></pre></div></div><div class="tab-pane" id="objects__account_id__operations_post_response"><h2>HTTP status code <a href="http://httpstatus.es/201" target="_blank">201</a></h2><p>Операция проведена</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>id</strong>: <em>required (integer)</em></li><li><strong>transaction_id</strong>: <em>required (integer)</em></li><li><strong>object_id</strong>: <em>required (integer)</em></li><li><strong>created</strong>: <em>required (datetime)</em></li><li><strong>sum</strong>: <em>required (number)</em></li><li><strong>balance</strong>: <em>required (number)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": 123456,
"transaction_id": 123456,
"object_id": 123456,
"created": "2018-12-01 10:10:43",
"sum": 79.00,
"balance": 79.00
}
</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Некорректный запрос</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/403" target="_blank">403</a></h2><p>Указанный тип операции не разрешен</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/404" target="_blank">404</a></h2><p>Указанный тип операции не найден</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/500" target="_blank">500</a></h2><p>Внутренняя ошибка</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__operations_post_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__status"><span class="parent">/objects/{account_id}</span>/status</a> <span class="methods"><a href="#objects__account_id__status_post"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__status" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__status_post'" class="list-group-item"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Отключение/включение учетной записи</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__status_post"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}</span>/status</h4></div><div class="modal-body"><div class="alert alert-info"><p>Отключение/включение учетной записи</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__status_post_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__status_post_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__status_post_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__status_post_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>status</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__status_post_response"><h2>HTTP status code <a href="http://httpstatus.es/201" target="_blank">201</a></h2><p>Статус учетной записи изменен</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>id</strong>: <em>required (string)</em></li><li><strong>status</strong>: <em>required (one of active, disconnected)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": 123456,
"status": "disconnected"
}
</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/203" target="_blank">203</a></h2><p>Неверный статус</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/304" target="_blank">304</a></h2><p>Статус уже установлен</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Некорректный запрос</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/402" target="_blank">402</a></h2><p>Недостаточно средств</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/500" target="_blank">500</a></h2><p>Внутренняя ошибка</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__status_post_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__services"><span class="parent">/objects/{account_id}</span>/services</a> <span class="methods"><a href="#objects__account_id__services_post"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__services" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__services_post'" class="list-group-item"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Активация услуги</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__services_post"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}</span>/services</h4></div><div class="modal-body"><div class="alert alert-info"><p>Активация услуги</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__services_post_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__services_post_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__services_post_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__services_post_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>id</strong>: <em>required (integer)</em></li><li><strong>auto_renewal</strong>: <em>required (integer)</em></li></ul></div><div class="tab-pane" id="objects__account_id__services_post_response"><h2>HTTP status code <a href="http://httpstatus.es/201" target="_blank">201</a></h2><p>Услуга активирована</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>id</strong>: <em>required (integer)</em></li><li><strong>created</strong>: <em>required (datetime)</em></li><li><strong>name_ru</strong>: <em>required (string)</em></li><li><strong>name_uk</strong>: <em>required (string)</em></li><li><strong>cost</strong>: <em>required (number)</em></li><li><strong>start</strong>: <em>(date-only)</em></li><li><strong>stop</strong>: <em>(date-only)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": 50,
"created": "2018-11-01 01:00:14",
"name_ru": "IPTV Вселенная",
"name_uk": "IPTV Всесвіт",
"active": 1,
"auto_renewal": 1,
"cost": 79,
"main": 1,
"channels_count": 230,
"bundles": [40],
}
</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Некорректный запрос</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/402" target="_blank">402</a></h2><p>Недостаточно средств</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/403" target="_blank">403</a></h2><p>Нет прав для активации указанной услуги</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/404" target="_blank">404</a></h2><p>Услуга не найдена</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/500" target="_blank">500</a></h2><p>Внутренняя ошибка</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__services_post_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__services__service_id_"><span class="parent">/objects/{account_id}/services</span>/{service_id}</a> <span class="methods"><a href="#objects__account_id__services__service_id__delete"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__services__service_id_" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__services__service_id__delete'" class="list-group-item"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Отключение услуги</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__services__service_id__delete"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}/services</span>/{service_id}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Отключение услуги</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__services__service_id__delete_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__services__service_id__delete_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__services__service_id__delete_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__services__service_id__delete_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li><li><strong>service_id</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p></div><div class="tab-pane" id="objects__account_id__services__service_id__delete_response"><h2>HTTP status code <a href="http://httpstatus.es/201" target="_blank">201</a></h2><p>Услуга активирована</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>id</strong>: <em>required (integer)</em></li><li><strong>created</strong>: <em>required (datetime)</em></li><li><strong>name_ru</strong>: <em>required (string)</em></li><li><strong>name_uk</strong>: <em>required (string)</em></li><li><strong>cost</strong>: <em>required (number)</em></li><li><strong>start</strong>: <em>(date-only)</em></li><li><strong>stop</strong>: <em>(date-only)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": 50,
"name_ru": "IPTV Вселенная",
"name_uk": "IPTV Всесвіт",
"active": 1,
"auto_renewal": 0,
"cost": 79,
"main": 1,
"channels_count": 230,
"bundles": [40],
"stop": "2019-01-01"
}
</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Некорректный запрос</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/403" target="_blank">403</a></h2><p>Нет прав для работы с указанной услуги</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/404" target="_blank">404</a></h2><p>Услуга не найдена</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/500" target="_blank">500</a></h2><p>Внутренняя ошибка</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__services__service_id__delete_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__contacts"><span class="parent">/objects/{account_id}</span>/contacts</a> <span class="methods"><a href="#objects__account_id__contacts_post"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__contacts" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__contacts_post'" class="list-group-item"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Добавление номера телефона</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__contacts_post"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}</span>/contacts</h4></div><div class="modal-body"><div class="alert alert-info"><p>Добавление номера телефона</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__contacts_post_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__contacts_post_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__contacts_post_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__contacts_post_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>phone</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__contacts_post_response"><h2>HTTP status code <a href="http://httpstatus.es/6" target="_blank">6</a></h2><p>Duplicate entry data</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/201" target="_blank">201</a></h2><p>Номер добавлен</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": 123456,
"contact": "012 3456789",
"status": "added"
}
</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Некорректный запрос</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__contacts_post_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__contacts__phone_"><span class="parent">/objects/{account_id}/contacts</span>/{phone}</a> <span class="methods"><a href="#objects__account_id__contacts__phone__delete"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__contacts__phone_" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__contacts__phone__delete'" class="list-group-item"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Удаление номера телефона</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__contacts__phone__delete"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_delete">delete <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}/contacts</span>/{phone}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Удаление номера телефона</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__contacts__phone__delete_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__contacts__phone__delete_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__contacts__phone__delete_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__contacts__phone__delete_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li><li><strong>phone</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__contacts__phone__delete_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>Номер удален</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": 123456,
"contact": "012 3456789",
"status": "deleted"
}
</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Некорректный запрос</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/406" target="_blank">406</a></h2><p>No phone number found</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__contacts__phone__delete_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__password"><span class="parent">/objects/{account_id}</span>/password</a> <span class="methods"><a href="#objects__account_id__password_put"><span class="badge badge_put">put <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__password" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__password_put'" class="list-group-item"><span class="badge badge_put">put <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Изменение пароля. Формат пароля минимум 8 символов</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__password_put"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_put">put <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}</span>/password</h4></div><div class="modal-body"><div class="alert alert-info"><p>Изменение пароля. Формат пароля минимум 8 символов</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__password_put_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__password_put_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__password_put_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__password_put_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>password</strong>: <em>(string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__password_put_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>Пароль изменен</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"id": 123456,
"newPassword": "12345678"
}</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Некорректный пароль</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/500" target="_blank">500</a></h2><p>Внутренняя ошибка</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__password_put_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_objects__account_id__token"><span class="parent">/objects/{account_id}</span>/token</a> <span class="methods"><a href="#objects__account_id__token_post"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_objects__account_id__token" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#objects__account_id__token_post'" class="list-group-item"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Создание временного токена для авторизации устройства</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="objects__account_id__token_post"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/objects/{account_id}</span>/token</h4></div><div class="modal-body"><div class="alert alert-info"><p>Создание временного токена для авторизации устройства</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#objects__account_id__token_post_request" data-toggle="tab">Request</a></li><li><a href="#objects__account_id__token_post_response" data-toggle="tab">Response</a></li><li><a href="#objects__account_id__token_post_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="objects__account_id__token_post_request"><h3>URI Parameters</h3><ul><li><strong>account_id</strong>: <em>required (integer)</em><p>Account ID</p></li></ul></div><div class="tab-pane" id="objects__account_id__token_post_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>Токен создан, время жизни токена 2 минуты</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"account_id": 123456,
"date_create": "2020-03-25 15:42:37",
"date_expire": "2020-03-25 15:44:37",
"token": "01234"
}</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/500" target="_blank">500</a></h2><p>Внутренняя ошибка</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="objects__account_id__token_post_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h3 id="search" class="panel-title">/search</h3></div><div class="panel-body"><div class="panel-group"><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_search_accounts"><span class="parent">/search</span>/accounts</a> <span class="methods"><a href="#search_accounts_get"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a> <a href="#search_accounts_post"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_search_accounts" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#search_accounts_get'" class="list-group-item"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Получить список всех точек аккаунтов</p></div><div class="clearfix"></div></div><div onclick="window.location.href = '#search_accounts_post'" class="list-group-item"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Получить список точек аккаунтов согласно заданнім условиям</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="search_accounts_get"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/search</span>/accounts</h4></div><div class="modal-body"><div class="alert alert-info"><p>Получить список всех точек аккаунтов</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#search_accounts_get_response" data-toggle="tab">Response</a></li><li><a href="#search_accounts_get_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="search_accounts_get_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>count</strong>: <em>required (integer)</em></li><li><strong>accounts</strong>: <em>required (array of )</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/500" target="_blank">500</a></h2><p>Внутренняя ошибка</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="search_accounts_get_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div><div class="modal fade" tabindex="0" id="search_accounts_post"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/search</span>/accounts</h4></div><div class="modal-body"><div class="alert alert-info"><p>Получить список точек аккаунтов согласно заданнім условиям</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#search_accounts_post_request" data-toggle="tab">Request</a></li><li><a href="#search_accounts_post_response" data-toggle="tab">Response</a></li><li><a href="#search_accounts_post_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="search_accounts_post_request"><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>parameter</strong>: <em>required (string status|phone|service_id|first_name|last_name|middle_name)</em></li><li><strong>value</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="search_accounts_post_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>count</strong>: <em>required (integer)</em></li><li><strong>property</strong>: <em>required (string)</em></li><li><strong>value</strong>: <em>required (string)</em></li><li><strong>accounts</strong>: <em>required (array of )</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/500" target="_blank">500</a></h2><p>Внутренняя ошибка</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="search_accounts_post_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_search_bundles"><span class="parent">/search</span>/bundles</a> <span class="methods"><a href="#search_bundles_get"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span></a></span></h4></div><div id="panel_search_bundles" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#search_bundles_get'" class="list-group-item"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span><div class="method_description"><p>Получение списка доступных пакетов</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="search_bundles_get"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get <span class="glyphicon glyphicon-lock" title="Authentication required"></span></span> <span class="parent">/search</span>/bundles</h4></div><div class="modal-body"><div class="alert alert-info"><p>Получение списка доступных пакетов</p></div><div class="alert alert-warning"><span class="glyphicon glyphicon-lock" title="Authentication required"></span> Secured by <b>bearer</b></div><ul class="nav nav-tabs"><li class="active"><a href="#search_bundles_get_response" data-toggle="tab">Response</a></li><li><a href="#search_bundles_get_securedby" data-toggle="tab">Security</a></li></ul><div class="tab-content"><div class="tab-pane active" id="search_bundles_get_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>Список пакетов для пользователей которые уже созданы или будут созданы по api</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: array of Bundles</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>[
{
"id": "126",
"name_ru": "Базовый",
"name_uk": "Базовий",
"main": true,
"cost": "80.00"
},
{
"id": "100",
"name_ru": "Детский",
"name_uk": "Дитячий",
"main": false,
"cost": "29.00"
}
]</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/500" target="_blank">500</a></h2><p>Ошибка сервера, нужно проверить настройки учётки оператора</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="search_bundles_get_securedby"><h1>Secured by bearer</h1><h3>Headers</h3><ul><li><strong>Authorization</strong>: <em>required (string)</em><p>Заголовок для авторизации по токену</p><p><strong>Example</strong>:</p><div class="examples"><pre><code>Bearer 00112233445566778899aabbccddeeff</code></pre></div></li></ul></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h3 id="tokens" class="panel-title">/tokens</h3></div><div class="panel-body"><div class="panel-group"><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_tokens"><span class="parent"></span>/tokens</a> <span class="methods"><a href="#tokens_post"><span class="badge badge_post">post</span></a></span></h4></div><div id="panel_tokens" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#tokens_post'" class="list-group-item"><span class="badge badge_post">post</span><div class="method_description"><p>Получение токена</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="tokens_post"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post</span> <span class="parent"></span>/tokens</h4></div><div class="modal-body"><div class="alert alert-info"><p>Получение токена</p></div><ul class="nav nav-tabs"><li class="active"><a href="#tokens_post_request" data-toggle="tab">Request</a></li><li><a href="#tokens_post_response" data-toggle="tab">Response</a></li></ul><div class="tab-content"><div class="tab-pane active" id="tokens_post_request"><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>login</strong>: <em>required (string)</em></li><li><strong>password</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="tokens_post_response"><h2>HTTP status code <a href="http://httpstatus.es/201" target="_blank">201</a></h2><p>Токен создан</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>token</strong>: <em>required (string)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"token": "00112233445566778899aabbccddeeff"
}
</code></pre></div><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Некорректный запрос, см. дополнительную информацию в ответе</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul><h2>HTTP status code <a href="http://httpstatus.es/404" target="_blank">404</a></h2><p>Указанная пара логин/пароль не найдена</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>code</strong>: <em>required (integer)</em></li><li><strong>message</strong>: <em>required (string)</em></li></ul></div></div></div></div></div></div></div></div></div></div></div><div class="col-md-3"><div id="sidebar" class="hidden-print affix" role="complementary"><ul class="nav nav-pills nav-stacked"><li><a href="#objects">/objects</a></li><li><a href="#search">/search</a></li><li><a href="#tokens">/tokens</a></li></ul></div></div></div></div></body></html>