On Demand\Promotions
Get a specific promotion on an On Demand page
Information about this method appears below.
get/ondemand/pages/{ondemand_id}/promotions/{promotion_id}
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.
promotion_idnumber required
Example:12345
The ID of the promotion.
Response
The promotion was 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.