API — различия между версиями
Материал из Твое Интернет Телевидение
								
												
				| TVclub (обсуждение | вклад)  (Новая страница: «  == Авторизация ==  http://api.iptv.so/1.0/xml/auth?hash=MD5(login.MD5(password))   == Аккаунт ==  http://api.iptv.so/1.0/xml/account?sid=sessi…») | TVclub (обсуждение | вклад)  | ||
| Строка 1: | Строка 1: | ||
| + | =Методы API= | ||
| − | == Авторизация == | + | == [auth] Авторизация == | 
| http://api.iptv.so/1.0/xml/auth?hash=MD5(login.MD5(password)) | http://api.iptv.so/1.0/xml/auth?hash=MD5(login.MD5(password)) | ||
| + | == [account] Аккаунт == | ||
| − | ==  | + | http://api.iptv.so/1.0/xml/account?sid=session_id | 
| + | |||
| + | == [logout] Закрытие сессии == | ||
| + | |||
| + | http://api.iptv.so/1.0/xml/logout?sid=session_id | ||
| + | |||
| + | == [groups] Список категорий ТВ== | ||
| + | |||
| + | http://api.iptv.so/1.0/xml/groups?sid=session_id | ||
| + | |||
| + | == [groups] Список каналов в группе ТВ== | ||
| + | |||
| + | http://api.iptv.so/1.0/xml/channels?gid=1&sort=1&sid=session_id | ||
| − | http://api.iptv.so/1.0/xml/ | + | @gid - group id | 
| + | |||
| + | @sort - 1|2|3 | ||
| + | |||
| + | == [live] Получение ссылки на трансляцию== | ||
| + | |||
| + | http://api.iptv.so/1.0/xml/live?cid=1&sid=session_id | ||
| + | |||
| + | @cid - channel id | ||
| + | |||
| + | ==[epg] EPG для определенных каналов на заданный период времени== | ||
| + | |||
| + | http://api.iptv.so/1.0/xml/epg?cid=1&time=1473541200&period=0&channels=2,1,4,5,6,1,8,9,11,12,13,14&desc_limit=100&sort=1&limit=10&page=1&sid=session_id | ||
| + | |||
| + | time<br/> | ||
| + | @time 		- epg start time, unixtime<br/> | ||
| + | @period 	- epg time to period, hours<br/> | ||
| + | @channels	- epg for channels ex.: 1,2,3<br/> | ||
| + | or @gid - all channels in this group id<br/> | ||
| + | @desc_limit - int, 0 - off, 200 - max<br/> | ||
| + | @limit<br/> | ||
| + | @start<br/> | ||
| + | @page<br/> | ||
| + | @sort - 1|2|3 | ||
Версия 01:48, 15 сентября 2016
Содержание
Методы API
[auth] Авторизация
http://api.iptv.so/1.0/xml/auth?hash=MD5(login.MD5(password))
[account] Аккаунт
http://api.iptv.so/1.0/xml/account?sid=session_id
[logout] Закрытие сессии
http://api.iptv.so/1.0/xml/logout?sid=session_id
[groups] Список категорий ТВ
http://api.iptv.so/1.0/xml/groups?sid=session_id
[groups] Список каналов в группе ТВ
http://api.iptv.so/1.0/xml/channels?gid=1&sort=1&sid=session_id
@gid - group id
@sort - 1|2|3
[live] Получение ссылки на трансляцию
http://api.iptv.so/1.0/xml/live?cid=1&sid=session_id
@cid - channel id
[epg] EPG для определенных каналов на заданный период времени
time
@time 		- epg start time, unixtime
@period 	- epg time to period, hours
@channels	- epg for channels ex.: 1,2,3
or @gid - all channels in this group id
@desc_limit - int, 0 - off, 200 - max
@limit
@start
@page
@sort - 1|2|3
