Usage
This is an api to utilize REDCAP api with ruby. This Gem requires mechanize as a dependency. it is based on instructions here http://sburns.org/2013/07/22/intro-to-redcap-api.html
To start:
r = RedcapAPI.new(token, url) # your institution has it's own url, and each project has it's own token
r.get(optional record_id) # returns all records in JSON format or a specific record if specified
Contributing
- Fork it ( https://github.com/[my-github-username]/RedcapAPI/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request