[ckan-dev] CKAN API Clients
David Read
david.read at hackneyworkshop.com
Tue May 1 15:18:11 UTC 2012
On 19 April 2012 23:16, Rufus Pollock <rufus.pollock at okfn.org> wrote:
> On 19 April 2012 17:22, Haq, Salman <Salman.Haq at neustar.biz> wrote:
>> Upon inspecting the source code, it appears that this client supports API v1
>> and v2 but not v3.
>
> That is correct.
>
>> My cursory understanding is that version 3 of the API is what I will need to
>> use to accomplish my tasks. Am I correct in assuming that I will have to
>> extend the Python client?
>
> That is correct -- patches will be very welcome and we will be looking
> to add action API support. I should also say JSON web API's are
Just for the record, I added CKAN v3 API (Action API) to ckanclient
back in November:
https://github.com/okfn/ckanclient/commit/92ca5e5a69131667b7654dd79aad461a00adda3b
Unless it's changed much recently, you have to read the code to work
out what parameters are required and what format they are. Any
problems with the parameters usually result in an obscure 500 error.
It is rather difficult to use, so I'd suggest sticking with v1 and v2
where possible. (Great to hear that Salman got the file upload to work
though.)
David
More information about the ckan-dev
mailing list