Settings API
Settings API is responsible for control of application settings. This API works only with application level access.
Get Settings
/settings
Returns current application settings.
Response:
{
"filter_inappropriate_content": true,
"enable_video_classification": false,
"enable_video_transcription": true
}
Example:
curl --request GET \
--url https://api.video.io/v1/settings \
--header 'accept: application/json; charset=utf-8' \
--header 'authorization: App token=YOUR_SECRET_TOKEN'
var request = require('request');
var options = {
method: 'GET',
url: 'https://api.video.io/v1/settings',
headers: {
accept: 'application/json; charset=utf-8',
authorization: 'App token=YOUR_SECRET_TOKEN'
}};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.video.io/v1/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json; charset=utf-8'
request["authorization"] = 'App token=YOUR_SECRET_TOKEN'
response = http.request(request)
puts response.read_body
import requests
url = "https://api.video.io/v1/settings"
headers = {
'accept': 'application/json; charset=utf-8',
'authorization': 'App token=YOUR_SECRET_TOKEN'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
Update Settings
/settings
Updates current application settings.
Body params:
filter_inappropriate_content Bool
Enables automatic filtering of videos with inappropriate content in current application
enable_video_classification Bool
Enables deep learning video processing for objects recognition for every videos of current application
enable_video_transcription Bool
Enables deep learning video processing for generation of speech transcription and subtitles for every videos of current application
Response:
{
"filter_inappropriate_content": true,
"enable_video_classification": true,
"enable_video_transcription": true
}
Example:
curl --request POST \
--url https://api.video.io/v1/sessions \
--header 'accept: application/json; charset=utf-8' \
--header 'authorization: App token=YOUR_SECRET_TOKEN' \
--data 'enable_video_classification=true'
var request = require('request');
var options = {
method: 'POST',
url: 'https://api.video.io/v1/sessions',
headers: {
accept: 'application/json; charset=utf-8',
authorization: 'App token=YOUR_SECRET_TOKEN'
},
body: {
enable_video_classification: 'true'
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.video.io/v1/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Post.new(url)
request["accept"] = 'application/json; charset=utf-8'
request["authorization"] = 'App token=YOUR_SECRET_TOKEN'
request.set_form_data({"enable_video_classification" => "true"})
response = http.request(request)
puts response.read_body
import requests
url = "https://api.video.io/v1/sessions"
headers = {
'accept': 'application/json; charset=utf-8',
'authorization': 'App token=YOUR_SECRET_TOKEN'
}
body = {
'enable_video_classification': 'true'
}
response = requests.request("POST", url, data=json.dumps(body), headers=headers)
print(response.text)