Example Queries
Obtaining a partner account token
Please see security on how to obtain request parameters.
curl --location 'https://<IDENTITY SERVICE HOSTNAME>/oauth/token' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "<CLIENT ID>",
"grant_type": "client_credentials",
"client_secret": "<CLIENT SECRET>",
"audience": "https://partner.vista.co/",
"tenant_code": "<VISTA TENANT CODE>"
}'
This returns following response on success:
{
"access_token": "eyJhbGciOiJSUz...",
"expires_in": 604800,
"token_type": "Bearer"
}
Getting a list of films
curl --location 'https://integration.app.vista.co/api/v1/film-management/films?startDateTime=2024-01-01T00%3A00%3A00Z&pageSize=1000' \
--header 'Authorization: Bearer <VISTA JWT>' \
--header 'CorrelationId: my-correlation-id' \
--header 'Content-Type: application/json' \
--header 'vista-api-key: <VISTA API KEY>' \
--header 'vista-api-tenant: <VISTA TENANT CODE>'
This returns the following response on success:
{
"nextPageCursor": null,
"data": [
{
"id": "1",
"sourceEntityId": "0000000041",
"siteId": null,
"title": "Movie 1",
"distributorId": "1",
"modifiedDateTime": "2024-10-01T16:43:30.503",
"openingDateTime": "2024-10-01T00:00:00",
"status": "Active",
"filmTerritoryId": null
},
...