Reseller API is an API, where the Resellers can list, search and buy videos from Glymt.
The base endpoint for all the requests regarding the Reseller API
The authentication method used is OAuth2.0.
This will generate a new access token valid for 2hours.
The {user_name} and {user_password} refers to the username and password of the Reseller Glymt account
The {client_id} and {client_secret} refers to the client id and client secret provided by Glymt to the Reseller, you can verify this information on your Glymt account page
POST/auth/login
{
"grant_type": "password",
"username": {user_name},
"password": {user_password},
"client_id": {your_client_id},
"client_secret": {your_client_secret}
}
{
"status": 200,
"token": {access_token},
"access_token": {access_token},
"expiration_date": 5485
}
GET/videos/search
POST/videos/purchase
GET/videos/purchases
This will retrieve a video list relatives to your search term.
{
"page": 1,
"q": {search_term}
}
{
"status": 200,
"videos":
[{
"id":{video_id},
"title": {video_title},
"duration": {video_duration},
"resolution_height":1080,
"resolution_width":1920,
"fps":25,
"has_audio":true,
"get_cover_url": {video_cover_url},
"get_preview_filepath": {video_preview_url},
"get_preview_hd_filepath": {video_preview_hd_url}}
}]
}
This will retrieve a video list relatives videos indiscriminately.
{
"page": 1
}
{
"status": 200,
"videos":
[{
"id":{video_id},
"title": {video_title},
"duration": {video_duration},
"resolution_height":1080,
"resolution_width":1920,
"fps":25,
"has_audio":true,
"get_cover_url": {video_cover_url},
"get_preview_filepath": {video_preview_url},
"get_preview_hd_filepath": {video_preview_hd_url}}
}]
}
This will purchase a video from Glymt and return the video url.
The video url will be available for 2 hours.
{
"id": {vide_id}
}
{
"status": 200,
"message": "Video purchased successfully.",
"video_url": {video_url}
}
This will return all of the purchases made by the Reseller.
{
"status": 200,
"licensed_videos": [
373710
],
"message": "Licenses loaded successfully."
}
This will return your account balance.
{
"status": 200,
"current_balance": [
300.00
],
"message": "Balance loaded successfully."
}