Images

To retrieve media (i.e. images and videos) for a specific activity, make the following request:

Copy
Copied
curl -X GET '{baseUrl}/activities/{activityUuid}/media' \
-H 'X-Musement-Application: {applicationValue}' \
-H 'X-Musement-Version: 3.4.0' \
-H 'Authorization: Bearer {accessToken}'

The response contains all gallery images and video which belong to that specific activity:

Copy
Copied
[
	{
		"id": 18313,
		"title": "Tickets for the Bargello National Museum",
		"url": "https://images-sandbox.musement.com/default/0001/19/tickets-for-the-bargello-national-museum_header-18313.jpeg?w=750&h=500",
		"type": "image",
		"is_cover": false
	},
	{
		"id": 18314,
		"title": "Tickets for the Bargello National Museum",
		"url": "https://images-sandbox.musement.com/default/0001/19/tickets-for-the-bargello-national-museum_header-18314.jpeg?w=750&h=500",
		"type": "image",
		"is_cover": false
	}
]

The response above does not usually contain the designated cover image found in the /activities/{activityUuid} response:

Copy
Copied
{
	[...]
	"cover_image_url": "https://images-sandbox.musement.com/cover/0001/02/tickets-for-the-bargello-national-museum_header-1445.jpeg?w=540",
	[...]
}

However, when the cover image is present in the gallery, its is_cover property is true:

Copy
Copied
[
	{
		"id": 1445,
		"title": "Tickets for the Bargello National Museum",
		"url": "https://images-sandbox.musement.com/cover/0001/02/tickets-for-the-bargello-national-museum_header-1445.jpeg?w=540",
		"type": "image",
		"is_cover": true
	}
]
Copyright © TUI Musement. All rights reserved.