Categories: None [Edit]

RedcapAPI

https://rubygems.org/gems/RedcapAPI
This gem is still under active development. Please contact me directly with any questions or suggestions. 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 r.get_fields # returns all fields for that instrument r.post(data) # this will either update an old record or create a new one. the data should be in form of array of hashes or as a hash (for one item). dates are accepted in Date class or in strftime('%F') format. for example data = {name: 'this is a test', field_2: Date.today} r.post(data) # creates a new object using the fields above. field names must match those in the existing project "{\"count\": 1}" --> indicates the object posted. to update an existing record: data = {record_id: 3, name: 'this is a test to update', field_2: Date.today} r.post(data) # this will update the record with record_id 3. if record_id 3 does not exist it will create an entry with that record id

Total

Ranking: 48,669 of 188,690
Downloads: 23,285

Daily

Ranking: 101,413 of 188,669
Downloads: 3

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,112,158,066bundler
101,200,241,117rake
121,173,121,484json
151,119,942,716nokogiri
409115,639,890csv
1,13338,949,649mechanize

Owners

#GravatarHandle
1iconeugyev