You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Initially, you need to get the access and refresh token. Please specify valid user name and password to gain access. If you have multiple VideoManagers, the response will show to which VideoManager the access token is assigned to. To gain access to a certain VideoManager, please proceed the "Get refresh"-method described in the following.

Please keep in mind that the lifetime of the access token is limited to 5 minutes. Because of the time-out, it is necessary to launch a request to update. For this purpose, also execute the refresh query to generate a new token.

 

Request

curl -X POST https://api.video-cdn.net/v1/vms/auth/login -H "Content-Type: application/json" -d "{
"username":"<USER NAME>",
"password":"<PASSWORD>"
}"


PrameterDescription
URL

The URL mentioned above refers to the gneral live instance of movingimage. Customers with their own instance must adjust the domain in the URL accordingly.

usernameUser name for VideoManager
passwordPassword of the user


Sample Response

{
    "accessToken": <ACCESS TOKEN>,
    "refreshToken": <REFRESH TOKEN>,
    "videoManagerList": [{"id":<VIDEOMANAGER ID>,"name":<VIDEOMANAGER NAME>}, {...}]
    "validForVideoManager": "<VIDEOMANAGER ID>"
}