On Demand\Promotions
Get all the promotions on an On Demand page
Information about this method appears below.
get/ondemand/pages/{ondemand_id}/promotions
Request
- Base URLhttps://api.vimeo.com
- AuthOAuth 2Authorization code/oauth/authorize, token URL /oauth/access_tokenClient credentialsToken URL /oauth/authorize/clientScopespromo_codes
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ondemand_idnumber required
Example:61326
The ID of the On Demand.
Query parameters
filter'batch' | 'default' | 'single' | 'vip' required
The filter to apply to the results.
pagenumber
Example:1
The page number of the results to show.
per_pagenumber
Example:10
The number of items to show on each page of results, up to a maximum of 100.
Response
The promotions were returned.
Example response
{
"access_type": "default",
"discount_type": "free",
"download": true,
"label": "8jgaieumbzstujhn8k304iwwezawkvwm",
"metadata": {
"connections": {
"codes": {
"total": 1,
"uri": "/ondemand/pages/61326/promotion/12345/codes"
}
}
},
"product_type": "any",
"stream_period": "1_week",
"total": 1,
"type": "batch",
"uri": "/ondemand/pages/61326/promotions/12345"
}Changes
No recorded changes to this operation across all 13 revisions of this API.