On Demand\Promotions
Get all the codes of a promotion on an On Demand page
This method returns all the codes of a promotion on an On Demand page.
get/ondemand/pages/{ondemand_id}/promotions/{promotion_id}/codes
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.
Query parameters
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 codes were returned.
Example response
{
"code": "8jgaieumbzstujhn8k304iwwezawkvwm",
"link": "https://vimeo.com/r/0trBLg/OGpnYWlldW",
"max_uses": 1
}Changes
No recorded changes to this operation across all 13 revisions of this API.