Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic action support #178

Open
anuveyatsu opened this issue Jun 13, 2021 · 2 comments
Open

Generic action support #178

anuveyatsu opened this issue Jun 13, 2021 · 2 comments
Milestone

Comments

@anuveyatsu
Copy link

This client supports only predefined set of actions from CKAN API. However, CKAN extensions may add new API actions which is not supported by this R client. Below is an example JS client and how generic action support is done:

client.action(action_name, body, function(err, result) {
  console.log(err);
  console.log(result);
})

Read more: https://github.com/okfn/ckan.js/#catalog

I never used R so please let me know if this doesn't make sense here.

@sckott
Copy link
Contributor

sckott commented Jun 16, 2021

Thanks for the issue @anuveyatsu

Yes, I think we can do that. I think it would make sense to return JSON in this case then, as there'd be no way to ahead of time know how to parse the results to an R object

@sckott sckott added this to the v0.7 milestone Jun 16, 2021
sckott added a commit that referenced this issue Jun 16, 2021
@sckott
Copy link
Contributor

sckott commented Jun 16, 2021

@anuveyatsu you can try again after reinstalling like remotes::install_github("ropensci/ckanr@generic-action")

work on branch https://github.com/ropensci/ckanr/tree/generic-action

@fjuniorr fjuniorr modified the milestones: v0.7, v0.8 Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants