Scopes are used to define which permissions or access rights can be granted to the user authenticating. They are specified when requesting an access token and can be combined. Each scope allows the authenticated user to access and/or manipulate specific protected resources only.
The scopes available on the Dailymotion API are as follows:
|Provides access to the email of the main user of the Dailymotion channel
|Allows to add/remove videos from the list liked video (“likes”) on behalf of the user
|Allows create/modify/delete Players on behalf of user
|Allows to create/edit/delete playlists on behalf of the user
|Allows to create/edit/delete podcasts on behalf of the user
|Allows to subscribe to channels on behalf of the user
|Allows to create/edit/delete subtitles on behalf of the user
|Allows to create/edit/delete uploaded videos on behalf of the user
|Provides read/write access to some personal user information like address and birthday
Request access token with scopes
You can include specific scopes using the
scope parameter when requesting an access token during authentication.
If multiple scopes are needed, you can separate them with a blank space.
In the following request example, we are requesting an access token with 2 scopes:
userinfowhich gives read and write access to the user personal information
manage_videoswhich allows to create/edit/delete videos on the user’s Dailymotion channel
POST /oauth/token HTTP/1.1