List of all Tags
Using this API you can get a list of all tags that are applied to your videos.
HTTP GET request to https://dev.vdocipher.com/api/videos/tags
Sample Code for List of all Tagsβ
The sample tag is written as {{tag}}. Replace this with the desired tag.
The sample API Secret Key is a1b2c3d4e5
.
- CURL
- NODE
- PHP
- C#
- Python
- Ruby
curl -X GET \
https://dev.vdocipher.com/api/videos/tags \
-H 'Accept: application/json' \
-H 'Authorization: Apisecret a1b2c3d4e5'
var request = require('request');
var options = {
method: 'GET',
url: 'https://dev.vdocipher.com/api/videos/tags',
headers: {
Accept: 'application/json',
Authorization: 'Apisecret a1b2c3d4e5',
},
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://dev.vdocipher.com/api/videos/tags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"Accept: application/json",
"Authorization: Apisecret a1b2c3d4e5"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
var client = new RestClient("https://dev.vdocipher.com/api/videos/tags");
var request = new RestRequest(Method.GET);
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Apisecret a1b2c3d4e5");
IRestResponse response = client.Execute(request);
import requests
url = "https://dev.vdocipher.com/api/videos/tags"
headers = {
'Authorization': "Apisecret a1b2c3d4e5",
'Accept': "application/json",
}
response = requests.request("GET", url, headers=headers)
print(response.text)
require 'uri'
require 'net/http'
url = URI("https://dev.vdocipher.com/api/videos/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Apisecret a1b2c3d4e5'
request["Accept"] = 'application/json'
response = http.request(request)
puts response.read_body