...
Code Block |
---|
|
{
"id": "iIAqlD",
"data": {
"type": "table",
"content": "<figure class=\"table\"><table><tbody><tr><td>Sample</td><td>Lorem</td></tr><tr><td>Sample</td><td>Ipsum</td></tr></tbody></table></figure>",
"placeholderName": "iIAqlD"
},
"type": "editor_block"
} |
Widget blocks
Odds
Code Block |
---|
|
{
"config": {
"options": {
"lang": "en",
"apiKey": "2f852b4de2f3a5cf3188e74b33087bb4:2c18422f8e826a7d11aeed52edb2449e",
"apiURL": "https://football.api.integration.sportal365.com",
"market": {
"name": "1x2"
},
"eventId": 1566257,
"oddClient": "sportal",
"oddProviderIds": [
43,
5,
33
],
"canSelectMarkets": false,
"displayMatchHeader": false,
"displayTeamShortNamesOnMobile": false,
"displayTeamShortNamesOnDesktop": false
},
"widgetId": "odds-listing"
},
"content": "<div data-widgetid='odds-listing' data-options='{\"lang\":\"en\",\"apiKey\":\"2f852b4de2f3a5cf3188e74b33087bb4:2c18422f8e826a7d11aeed52edb2449e\",\"apiURL\":\"https://football.api.integration.sportal365.com\",\"oddClient\":\"sportal\",\"market\":{\"name\":\"1x2\"},\"eventId\":1566257,\"oddProviderIds\":[43,5,33],\"canSelectMarkets\":false,\"displayMatchHeader\":false,\"displayTeamShortNamesOnMobile\":false,\"displayTeamShortNamesOnDesktop\":false}'></div>",
"preview": {
},
"changeId": "VejGcqn",
"widget_type": "widgetOdds"
} |
...
Code Block |
---|
|
{
"config": {
"options": {
"lang": "en",
"apiKey": "2f852b4de2f3a5cf3188e74b33087bb4:2c18422f8e826a7d11aeed52edb2449e",
"apiURL": "https://football.api.integration.sportal365.com",
"teamId": 97,
"seasonId": 6885,
"oddClient": "sportal",
"playerPositions": [
{
"columns": [
"name",
"birthDate",
"nationality",
"played"
],
"position": "forward"
}
]
},
"widgetId": "widget-squad-statistics"
},
"content": "<div data-widgetid='widget-squad-statistics' data-options='{\"lang\":\"en\",\"apiKey\":\"2f852b4de2f3a5cf3188e74b33087bb4:2c18422f8e826a7d11aeed52edb2449e\",\"apiURL\":\"https://football.api.integration.sportal365.com\",\"oddClient\":\"sportal\",\"teamId\":97,\"playerPositions\":[{\"position\":\"forward\",\"columns\":[\"name\",\"birthDate\",\"nationality\",\"played\"]}],\"seasonId\":6885}'></div>",
"preview": {},
"changeId": "OusSGZq",
"widget_type": "widgetSquadStatistics"
} |
Content blocks
!IMPORTANT
Unlike other content blocks, the main data for the Content blocks are all of the fields except the changeId and preview.
As you may notice they hold and id field which is going to be used to request the article when rendering the content. The reason the id to be the only one provided in the block is that objects like: Article, Video, Gallery, Image, Banner and Poll are complex objects and could contain a lot of data, which will cause huge information to be transferred.
Article
Code Block |
---|
|
{
"id": "2021080308281016827",
"preview": {
"previewContent": {
"position": {
"width": "100",
"alignment": "center"
}
}
},
"changeId": "SRYgUrz"
} |
Gallery
The main information that is required for the render on the front-end side is the: id and main_image_id.
The main_image_id is the cover image which was selected for the gallery.
Code Block |
---|
|
{
"id": "2021100711260908493",
"preview": {},
"changeId": "owbDwXH",
"main_image_id": "2021100711284732603"
} |
Image
The main information that is required for the render on the front-end side is the id, description.
Code Block |
---|
|
{
"id": "2021102009420900099",
"preview": {},
"changeId": "cOckUPx",
"description": "This is a sample image description"
} |
Video
Code Block |
---|
|
{
"id": "2021053107081456915",
"preview": {},
"startAt": "00:05:00",
"changeId": "LPrDElg"
} |
Embed
The main information that is required for the render on the front-end side is in the content field.
To be able to differentiate between different types of embeds: Video/Social the embed_type is used.
Code Block |
---|
|
{
"content": "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/61h4-dvGZac\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>",
"preview": {},
"changeId": "KgeBjTN",
"embed_type": "video"
} |
Highlight
The main fields that are required to render Highlight are: title and description
Code Block |
---|
|
{
"title": "This is a title",
"preview": {},
"changeId": "dunwztT",
"description": "This is a highlight description"
} |
Link
The main fields that are required to render the Link are: link, text, linkType, open_type
Code Block |
---|
|
{
"link": "https://www.youtube.com/watch?v=61h4-dvGZac",
"text": "This is a textual link",
"content": "<a href=\"https://www.youtube.com/watch?v=61h4-dvGZac\" target=\"_self\">This is a textual link</a>",
"preview": {},
"changeId": "vsfyBzC",
"linkType": "link",
"open_type": "SAME_WINDOW"
} |
Banner
Code Block |
---|
|
{
"id": "2020051809292299971",
"preview": {},
"changeId": "ojpGNNA"
} |
Poll
Code Block |
---|
|
{
"id": "2021060313380330716",
"preview": {},
"changeId": "UjOspUK"
} |