[ckan-discuss] API docs and authentication example
Sean Burlington
sean at practicalweb.co.uk
Fri Jun 25 10:28:08 BST 2010
I recently came across a documentation issue
http://knowledgeforge.net/ckan/doc/ckan/api.html
-----
The key should be passed in the API request header:
Header Example value
HTTP_AUTHORIZATION fde34a3c-b716-4c39-8dc4-881ba115c6d4
-----
But the header name is actually just 'AUTHORIZATION'
For example to set it in PHP
curl_setopt($ch, CURLOPT_HTTPHEADER, array('AUTHORIZATION:
xxxxx-xxxx-xxxx-xxxx-xxxxxxx'));
--
Sean Burlington
www.practicalweb.co.uk
More information about the ckan-discuss
mailing list