Refresh Token
https://{companyUsername}.bytebets.com.ng/api/refresh
Refresh your token using your refresh token
Any parameter within curly braces in the URL must be changed to what it describes
Example Code for Refresh Token
curl -k -H "Content-Type: application/json"\
-X -d '{"field1":"abc","field2":"abc"}' POST 'https://{companyUsername}.bytebets.com.ng/api/refresh'
var jsondata = {"field1": "xyz","field2": "abc"};
var settings = {
"async": true,
"crossDomain": true,
"url": https://{companyUsername}.bytebets.com.ng/api/refresh,
"method": POST,
"headers": {
"content-type": "application/json",
"cache-control": "no-cache"
},"processData": false,
"data": JSON.stringify(jsondata)
}
$.ajax(settings).done(function (response) {
console.log(response);
});
var request = require("request");
var options = {
method: POST,
url: https://{companyUsername}.bytebets.com.ng/api/refresh,
headers:
{ 'cache-control': 'no-cache',
},
"body": { field1: "xyz", field2: "abc" },
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
HttpResponse
response = Unirest.post("https://{companyUsername}.bytebets.com.ng/api/refresh")
.header("cache-control", "no-cache")
.body("{"field1":"xyz","field2":"abc"}").asString();
$request = new HttpRequest();
$request->setUrl('https://{companyUsername}.bytebets.com.ng/api/refresh');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'cache-control' => 'no-cache','content-type' => 'application/json'
));
$request->setBody("{"field1":"xyz","field2":"abc"}");
}}
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}