GET

Get Post by Category and Taxonomy

https://api.bytelabs.ng/docs/posts/{type}/{taxonomy}/{taxonomy_name}

This API allows you to get post by post type ,and their taxonomy. Available types include api, tutorials, sample_sms while taxonomy include birthday, bytebets_api_category etc.

Any parameter within curly braces in the URL must be changed to what it describes

Example Code for Get Post by Category and Taxonomy

curl -k -i -H "Content-Type: application/json"\


-X -d '{"field1":"abc","field2":"abc"}' GET 'https://api.bytelabs.ng/docs/posts/{type}/{taxonomy}/{taxonomy_name}'

    
    var settings = {
    "async": true,
    "crossDomain": true,
    "url": https://api.bytelabs.ng/docs/posts/{type}/{taxonomy}/{taxonomy_name},
    "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/posts/{type}/{taxonomy}/{taxonomy_name},
    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/posts/{type}/{taxonomy}/{taxonomy_name}")
.header("cache-control", "no-cache")
.asString();
 
$request = new HttpRequest();
$request->setUrl('https://api.bytelabs.ng/docs/posts/{type}/{taxonomy}/{taxonomy_name}');
$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;
}
Do not forget to change all parameters to valid parameters before accessing the API