Taxonomy List
https://api.bytelabs.ng/docs/taxonomy/{taxonomy_slug}
Use this API to get taxonomy list. the Taxonomy slug can be category, api_category, sms_category etc
Any parameter within curly braces in the URL must be changed to what it describes
Example Code for Taxonomy List
curl -k -i -H "Content-Type: application/json"\
-X -d '{"field1":"abc","field2":"abc"}' GET 'https://api.bytelabs.ng/docs/taxonomy/{taxonomy_slug}'
var settings = {
"async": true,
"crossDomain": true,
"url": https://api.bytelabs.ng/docs/taxonomy/{taxonomy_slug},
"method": GET,
"headers": {
"content-type": "application/json",
"cache-control": "no-cache"
},
}
$.ajax(settings).done(function (response) {
console.log(response);
});
var request = require("request");
var options = {
method: GET,
url: https://api.bytelabs.ng/docs/taxonomy/{taxonomy_slug},
headers:
{ 'cache-control': 'no-cache',
},
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
HttpResponse
response = Unirest.get("https://api.bytelabs.ng/docs/taxonomy/{taxonomy_slug}")
.header("cache-control", "no-cache")
.asString();
$request = new HttpRequest();
$request->setUrl('https://api.bytelabs.ng/docs/taxonomy/{taxonomy_slug}');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders(array(
'cache-control' => 'no-cache','content-type' => 'application/json'
));
}}
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}