en:tvip_json_middleware_api:2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:tvip_json_middleware_api:2 [2018/04/18 11:16] – [Tag list] Egor Danilenko | en:tvip_json_middleware_api:2 [2025/09/12 09:48] (current) – [Feeds] Курбатова Анастасия | ||
|---|---|---|---|
| Line 239: | Line 239: | ||
| | **enabled** | | **enabled** | ||
| | **contract** | | **contract** | ||
| - | \\ | + | |
| - | \\ | + | ===== Feeds ===== |
| + | |||
| + | Get information about feeds on home srceen. | ||
| + | |||
| + | Request: | ||
| + | < | ||
| + | |||
| + | Response: | ||
| + | <code javascript> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | { | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | " | ||
| + | " | ||
| + | | ||
| + | { | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | " | ||
| + | " | ||
| + | | ||
| + | { | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | " | ||
| + | " | ||
| + | | ||
| + | { | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | " | ||
| + | " | ||
| + | | ||
| + | { | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ] | ||
| + | } | ||
| + | ] | ||
| + | } | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | Feed structure: | ||
| + | ^Field: ^Type ^Req. ^Description | | ||
| + | | **id** | Int | Yes | Unique id. | | ||
| + | | **type** | String | Yes | [enum] " | ||
| + | | **focusable** | Boolean | Yes, default = true | If user can focus on the feed | | ||
| + | | **title** | String | No | The title of the feed | | ||
| + | | **card_size** | Size | Yes | The width and height of item image card - under the table watch more info | | ||
| + | | **expanded** | Boolean | Yes, default = false | Whether feed needs more space to show it's background | | ||
| + | | **show_item_title** | Boolean | Yes, default = true | If true then item title is always shown under the item card, if false then title is shown in the center of item card when the card image is not loaded | | ||
| + | |||
| + | Size structure: | ||
| + | ^Field: ^Type ^Req. ^Description | | ||
| + | | **width** | Int | Yes | Image card width | | ||
| + | | **height** | Int | Yes | Image card height | ||
| + | |||
| + | card size available (can choose only from these ones): | ||
| + | |||
| + | * landscape_poster: | ||
| + | * portrait_poster: | ||
| + | * big_portrait_poster: | ||
| + | * app_logo: 240 x 135 - default for " | ||
| + | * default_banner: | ||
| + | * wide_banner: | ||
| + | |||
| + | for " | ||
| + | |||
| + | for " | ||
| + | |||
| + | ===== Feed items ===== | ||
| + | Get items of the feed. | ||
| + | |||
| + | Request: | ||
| + | < | ||
| + | |||
| + | Response: | ||
| + | <code javascript> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | ] | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Item structure: | ||
| + | ^Field: ^Type ^Req. ^Description | | ||
| + | | **title** | ||
| + | | **subtitle** | ||
| + | | **deeplink** | ||
| + | | **progress** | Progress | No | Only fo continue feed. Shows total and elapsed time of the video | | ||
| + | | **mark** | String | No | The one word showing above item card | | ||
| + | | **background_image** | String | No | The image url to show on the background when item is focused | | ||
| + | | **background_video** | String | No | The video url to play on the background when item is focused | | ||
| + | | **image** | String | Yes | The image url for the item card | | ||
| + | |||
| + | Progress structure: | ||
| + | ^Field: ^Type ^Req. ^Description | | ||
| + | | **total** | ||
| + | | **elapsed** | ||
| ====== Content requests ====== | ====== Content requests ====== | ||
| Line 303: | Line 450: | ||
| </ | </ | ||
| - | **channels_version** defines version or timestamp | + | **channels_version** defines version or timestamp |
| **channels_hash** unique hash of available channels, used in short epg\\ | **channels_hash** unique hash of available channels, used in short epg\\ | ||
| **epg_version** defines version or timestamp or current EPG data. If this value is the same as on previous request, EPG will be considered the same.\\ | **epg_version** defines version or timestamp or current EPG data. If this value is the same as on previous request, EPG will be considered the same.\\ | ||
| Line 657: | Line 804: | ||
| - | This command loads vod сategories for requested places. Now boxies load **' | + | This command loads vod сategories for requested places. Now boxies load only **' |
| Request: | Request: | ||
en/tvip_json_middleware_api/2.1524050190.txt.gz · Last modified: by Egor Danilenko
