arbei wrote:
You need to add 'Bearer ’ before the JWT token.
On the API Calling script I have add the “Bearer” as
CURLOPT_HTTPHEADER => array(
“X-Authorization: Bearer $jwttoken”,
“content-type: application/json”
),
But still I am unable to access the REST API with Security
on the REST API I try as
$result[“userlevel”] = CurrentUserLevel();
$response = $response->write(json_encode($result));
return $response;
I got the return as {“userlevel”:null}