arthur-shaw / susoapi

R interface for Survey Solutions' APIs
https://arthur-shaw.github.io/susoapi/
Other
9 stars 5 forks source link

`workspace` argument in Export functions #14

Closed ashwinikalantri closed 3 years ago

ashwinikalantri commented 3 years ago

I wasn't able to start export from workspaces other than the primary workspace. I was able to get the export functions to work by adding a workspace argument and replacing the following base_url code with base_url <- paste0(server,"/",workspace,"/api/v2/export") in all the functions.

https://github.com/arthur-shaw/susoapi/blob/80b0d367e933af51252933462ca4bf13fffa9bb6/R/export.R#L90

arthur-shaw commented 3 years ago

Commit 4dae472 closes this issue.

ashwinikalantri commented 3 years ago

https://github.com/arthur-shaw/susoapi/blob/7b609cf257f521cf7674387074d38ea3efe8c09c/R/users.R#L668

This line will also need the workspace argument.

arthur-shaw commented 3 years ago

Thanks for catching this!