Closed frafra closed 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?
@mcarans - Did you figure this out? We're looking for the same information! Thanks!
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.
Thanks so much @wardi!!
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.