I am using robotoolbox, an R package to successfully retrieve asset lists with
kobo_asset_list() when retrieving from
However, when trying to access the asset_list on a different account on https://kobo.humanitarianresponse.info/ I get a 403 forbidden error. https://kf.kobotoolbox.org/
I follow 3 steps:
to get access token
kobo_token(username = "tkilimba", password = "notthepassword", url = "https://kf.kobotoolbox.org/")
set up my R environment for access:
kobo_setup(url = "https://kf.kobotoolbox.org", token = "xxxxxxxxxxxxxxxxxxxxxxxxxxx")
Retrieve asset list:
The final command results in
Any help appreciated
Welcome back to the community,
@Tumaini! Maybe you could try using this approach as shared by @dickoa:
Dear KoBo and R users,
Happy new year! I wanted to share with you a work-in-progress R package to access KoBoToolbox using v2 API:
I would be grateful if you can give it a try and provide feedbacks on how to improve it, particularly if something is not working as expected.
I didn’t implement unit tests yet and some features might not be available if you have a project with multiple form versions where questions and/org group names changed during the course of the project.
@Kal_Lam , but that post is where I originally learned of robotoolbox, but it does not answer the issue I currently have unfortunately
@Tumaini, you could continue your discussion in the post I have shared where @dickoa should be able to help you out.
Thanks for raising this issue. Can you check that the token obtained using
kobo_token is the same as the one you have when you log in to your
kf.kobotoolbox.org account, in ‘Account setting’ ?
If you copy the token manually, in account setting and use it in
kobo_setup does it work ?
You can also check if the username and password are the same as the one you will use to log into the kf account.