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 [2025/04/30 12:35] – Add feeds Варвара Синицкая | en:tvip_json_middleware_api:2 [2025/09/12 09:48] (current) – [Feeds] Курбатова Анастасия | ||
|---|---|---|---|
| Line 256: | Line 256: | ||
| { | { | ||
| | | ||
| - | | + | |
| - | "subtype": | + | |
| | | ||
| - | | ||
| | | ||
| - | "mark_position": | + | |
| + | " | ||
| }, | }, | ||
| { | { | ||
| | | ||
| - | | + | |
| - | "subtype": | + | |
| | | ||
| | | ||
| | | ||
| - | "mark_position": | + | |
| + | " | ||
| }, | }, | ||
| { | { | ||
| | | ||
| - | | + | |
| - | "subtype": | + | |
| | | ||
| | | ||
| | | ||
| - | "mark_position": | + | |
| + | " | ||
| }, | }, | ||
| { | { | ||
| | | ||
| - | | + | |
| - | "subtype": | + | |
| | | ||
| | | ||
| | | ||
| - | "mark_position": | + | |
| + | " | ||
| }, | }, | ||
| - | { | + | |
| | | ||
| - | | + | |
| - | "subtype": Continue, | + | |
| | | ||
| - | | + | |
| - | | + | |
| - | "mark_position": | + | "expanded": |
| + | " | ||
| } | } | ||
| ] | ] | ||
| Line 310: | Line 309: | ||
| ^Field: ^Type ^Req. ^Description | | ^Field: ^Type ^Req. ^Description | | ||
| | **id** | Int | Yes | Unique id. | | | **id** | Int | Yes | Unique id. | | ||
| - | | **type** | String | Yes | [enum] | + | | **type** | String | Yes | [enum] "SERVERS" |
| - | | **subtype** | String | + | | **focusable** | Boolean | Yes, default = true | If user can focus on the feed | |
| - | | **focusable** | Boolean | Yes | If user can focus on the feed - true by default | + | | **title** | String | No | The title of the feed | |
| - | | **title** | String | Yes | The title of the feed | | + | | **card_size** | Size | Yes | The width and height of item image card - under the table watch more info | |
| - | | **card_size** | Object | + | | **expanded** | Boolean |
| - | | **mark_position** | String | + | | **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): | card size available (can choose only from these ones): | ||
| - | * landscape_poster: | + | * landscape_poster: |
| * portrait_poster: | * portrait_poster: | ||
| * big_portrait_poster: | * big_portrait_poster: | ||
| Line 326: | Line 330: | ||
| * wide_banner: | * wide_banner: | ||
| - | for " | + | 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 ====== | ||
en/tvip_json_middleware_api/2.1746016558.txt.gz · Last modified: by Варвара Синицкая
