All URIs are relative to https://api.bakuage.com:443
| Method | HTTP request | Description |
|---|---|---|
| download_video | GET /videos/{id}/download | Download an video data by id. |
| download_video_by_token | GET /videos/download_by_token | Download an video data by video_download_token. |
| get_video | GET /videos/{id} | Get an video by id. |
| get_video_download_token | GET /videos/{id}/download_token | Get an video download token by id. |
| list_videos | GET /videos | Get all videos accessable. |
String download_video(id)
Download an video data by id.
# load the gem
require 'aimastering'
# setup authorization
Aimastering.configure do |config|
# Configure API key authorization: bearer
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = Aimastering::VideoApi.new
id = 56 # Integer | Video id
begin
#Download an video data by id.
result = api_instance.download_video(id)
p result
rescue Aimastering::ApiError => e
puts "Exception when calling VideoApi->download_video: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Video id |
String
- Content-Type: Not defined
- Accept: application/octet-stream
String download_video_by_token(download_token)
Download an video data by video_download_token.
# load the gem
require 'aimastering'
# setup authorization
Aimastering.configure do |config|
# Configure API key authorization: bearer
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = Aimastering::VideoApi.new
download_token = "download_token_example" # String | Video download token
begin
#Download an video data by video_download_token.
result = api_instance.download_video_by_token(download_token)
p result
rescue Aimastering::ApiError => e
puts "Exception when calling VideoApi->download_video_by_token: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| download_token | String | Video download token |
String
- Content-Type: Not defined
- Accept: application/octet-stream
Video get_video(id)
Get an video by id.
# load the gem
require 'aimastering'
# setup authorization
Aimastering.configure do |config|
# Configure API key authorization: bearer
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = Aimastering::VideoApi.new
id = 56 # Integer | Video id
begin
#Get an video by id.
result = api_instance.get_video(id)
p result
rescue Aimastering::ApiError => e
puts "Exception when calling VideoApi->get_video: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Video id |
- Content-Type: Not defined
- Accept: application/json
VideoDownloadToken get_video_download_token(id)
Get an video download token by id.
# load the gem
require 'aimastering'
# setup authorization
Aimastering.configure do |config|
# Configure API key authorization: bearer
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = Aimastering::VideoApi.new
id = 56 # Integer | Video id
begin
#Get an video download token by id.
result = api_instance.get_video_download_token(id)
p result
rescue Aimastering::ApiError => e
puts "Exception when calling VideoApi->get_video_download_token: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Video id |
- Content-Type: Not defined
- Accept: application/json
Array<Video> list_videos
Get all videos accessable.
# load the gem
require 'aimastering'
# setup authorization
Aimastering.configure do |config|
# Configure API key authorization: bearer
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = Aimastering::VideoApi.new
begin
#Get all videos accessable.
result = api_instance.list_videos
p result
rescue Aimastering::ApiError => e
puts "Exception when calling VideoApi->list_videos: #{e}"
endThis endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json