ckan / ckanapi

A command line interface and Python module for accessing the CKAN Action API
Other
176 stars 74 forks source link

Download resources #150

Closed frafra closed 2 years ago

frafra commented 4 years ago

Even if downloading files is not part of the API, it would be nice to do that. Using X-CKAN-API-Key works just fine when requesting a private resource.

mcarans commented 2 years ago

@wardi Is it possible to download a private resource through the CKAN API with an API token using the "Fix dump for private resources" change and if so, how does it work?

MLaunch commented 8 months ago

@mcarans - Did you figure this out? We're looking for the same information! Thanks!

wardi commented 8 months ago

Pass your api token as the apikey parameter and creating datapackages from the CLI (what the #194) fix was for should work.

Getting a correct URL for downloading private resources with package_show, dump datasets etc. should have always been working if you pass your api token as the apikey parameter.

MLaunch commented 8 months ago

Thanks so much @wardi!!