[ckan-discuss] API docs and authentication example

John Bywater john.bywater at appropriatesoftware.net
Fri Jun 25 11:27:01 BST 2010


Hi Sean,

Thanks for raising an issue with the API documentation.

I created this ticket for the issue:
http://knowledgeforge.net/ckan/trac/ticket/357

And adjusted the documentation accordingly:
http://knowledgeforge.net/ckan/trac/changeset/1265%3A79c426c0acb6

Best wishes,

John.



Sean Burlington wrote:
> 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'));
> 
> 
> 




More information about the ckan-discuss mailing list