Invalid Access Token
Posted: Tue Oct 28, 2014 12:10 pm
Hi, I'm getting an error when I try to use the registered service.
I can generate an access token using this pastebin com/g24sPFP0 (This is a pastebin code)
I then add the header to my request;
Although I get this error.
I have attempted to make the request within a few seconds of generating a new access token. Any ideas as to what to try next?
Thanks,
Harry
I can generate an access token using this pastebin com/g24sPFP0 (This is a pastebin code)
I then add the header to my request;
Code: Select all
$headers = array(
'Authorization: Bearer' . $access_token,
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
Code: Select all
[Tue Oct 28 11:03:20 2014] [error] [client 192.168.1.26] PHP Fatal error: Uncaught exception 'Pest_BadRequest' with message '<error><code>400</code><message>invalid_access_token</message><description>Access token is invalid</description>\n\t\t\t\t</error>\n\t\t\t' in /mnt/apshared/webtest/html/lib/pest/Pest.php:218\nStack trace:\n#0 /mnt/apshared/webtest/html/lib/pest/Pest.php(200): Pest->checkLastResponseForError()\n#1 /mnt/apshared/webtest/html/lib/pest/Pest.php(63): Pest->doRequest(Resource id #15)\n#2 /mnt/apshared/webtest/html/epo.class.php(53): Pest->get('/number-service...', '4K3Kyk5Uv2se6Ia...')\n#3 /mnt/apshared/webtest/html/epo.class.php(278): epo->OriginalDocument('GB2483636')\n#4 /mnt/apshared/webtest/html/epo.class.php(567): epo->call('GB2483636')\n#5 /mnt/apshared/webtest/html/search_citations_summary.php(39): epo->get_summary('GB2483636')\n#6 {main}\n thrown in /mnt/apshared/webtest/html/lib/pest/Pest.php on line 218, referer: localwebserverremoved/
Thanks,
Harry