Itinerary Media¶
Itinerary Media is a collection of media relevant to the Itinerary. It
contains a list of media objects, either IMAGE
, or VIDEO
type.
If you are looking to display more imagery for a tour, it is recommended you fetch data from this object.
{
"id": "<Integer:Original image id>",
"href": "<String:Image resource location>",
"description": "<String:image caption>",
"url": "<String:original image source>",
"variations": [
{
"modification": "<String:[ldpi|itinerary_lg|itinerary_sq|...]",
"variant": {
"id": "<Integer:variant id>",
"href": "<String:Image resource location>",
"description": "<String:image caption>",
"url": "<String:image url>"
}
}
],
"type": "IMAGE",
"videos": null,
"video_thumb": null
}
And videos:
{
"image": null,
"type": "VIDEO",
"videos": [
{
"id": "<Integer:video id>",
"url": "<String:video url (i.e. 'https://player.vimeo.com/video/[video id]/')>",
"bitrate": "<String:bitrate [1080|...]>"
}
],
"video_thumb": "<String:Thumb used by vimeo>"
}
Fields
Name |
Type |
Description |
---|---|---|
image required |
Nested Object |
|
|
String |
|
|
Field |
|
|
String |
Image caption |
|
String |
url of image |
|
Field |
|
|
String |
Type of resize done |
|
Nested Object |
|
|
String |
|
|
Field |
|
|
String |
Image caption |
|
String |
url of image |
type required |
String |
[IMAGE|VIDEO] |
videos required |
Field |
|
|
String |
|
|
String |
Url for videos (vimeo only). |
|
String |
Bitrate for video |
video_thumb |
String |
Thumb for videos to display in slider. |
Get Itinerary Media
- GET /itineraries/(string: itinerary_id)/(string: variation_id)/itinerary_media¶