Giter Site home page Giter Site logo

koboapi's People

Contributors

caldwellst avatar elliottmess avatar nicola2306 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

koboapi's Issues

Security risk : Password hard coded in functions

A few functions have the password as a parameter, which increases the risk of sharing password along with code/script.
A solution has to be found to remove those hard coded passwords, while limiting the number of times the password is asked for with readline.

download_data issue

Hi Elliot,

This package is great! I'm not sure if you are still working on it at the moment, but I could not get a bunch of functions to work properly. The issues I found were usually due to object and function names being overwritten. I have fixed the package to work for my needs in my forked repo. It now works for the simple cases of downloading all the forms in a kobo account into a table, downloading a kobo dataset, and downloading the XLSForm form. The changes I made may have broken the some of the stuff for more complex use-cases where you want to deal with languages differently or extract the repeat groups into a nested list column. Therefore, it may not make sense for me to submit a pull request yet. However, let me know your thoughts. Thanks!

I also added a standardize_form function in kobo_utils to be used after download_form. It just puts the columns back to how they would have been when the form was downloaded (just fixes list_name in survey dataframe). I made the function separate because I didn't want to change columns that might be crucial for other functionality. In this standard format kobold functions (seths package) can be used which are quite convenient. If making this standardization can be done inside the download_form function without breaking other processes that would be simpler.

"object 'label' not found" error when calling functions with old_id

When calling download_data and download_form (but probably with other functions too) with an "old_id" in the formid argument, the following errors shows:

 Error: Problem with `mutate()` input `label`.
x object 'label' not found
i Input `label` is `purrr::map(label, setNames, languages_labels)`.

Api definition on the kobo_data function

When the forms are on koobotoolbox.org, the API is :kc.kobotoolbox.org, meaning that the variable storing the api must be modified.

api_old <- gsub("kobo", "kc", api)

should be replaced by:

api_old <- gsub("kf", "kc", api)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.