$url = 'https://magento2-demo.magebit.com/rest/V1/integration/admin/token';
$data = [
'username' => 'magebit',
'password' => 'Demo123'
];
$response = Http::post($url, $data);
if ($response->successful()) {
$token = $response->body();
return $token;
} else {
return $response->status();
}
while calling this api using demo credentials it’s showing 403 error why?
I try to get access token for magento api form magento demo. But it’s showing an error 403. Is it possible to access token from magento demo?