i have tried to connect to boondmanager to retrive some data from their active APIs yet i seem to get a 401 error with:
{ "meta": { "version": "7.2.1.1", "isLogged": false, "language": "en" }, "errors": [ { "status": "401", "code": "401", "detail": "HTTP 401 (GET /api/dashboard)", "title": 401 } ] }
as a return message in my page.
I use cUrl and php to code my project,
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://ui.boondmanager.com/api/dashboard",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_HTTPHEADER => array(
"Authorization: Basic " . base64_encode("email:password")
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}