{"name":"RedcapAPI","downloads":23988,"version":"0.0.6","version_created_at":"2015-06-18T14:39:41.879Z","version_downloads":3650,"platform":"ruby","authors":"eugyev","info":"\n    This gem is still under active development. Please contact me directly with any  questions or suggestions. \n    \n  To start:\n\n  r = RedcapAPI.new(token, url) # your institution has it's own url, and each project has it's own token\n\n  r.get(optional record_id) # returns all records in JSON format or a specific record if specified\n  \n  r.get_fields # returns all fields for that instrument\n  \n  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. \n  for example\n    data = {name: 'this is a test', field_2: Date.today}\n    r.post(data) # creates a new object using the fields above. field names must match those in the existing project\n    \"{\\\"count\\\": 1}\" --&gt; indicates the object posted. \n  \n  to update an existing record:\n  data = {record_id: 3, name: 'this is a test to update', field_2: Date.today}\n  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\n  \n  ","licenses":["MIT"],"metadata":{},"yanked":false,"sha":"b8d5ec06a840fe0c6dfa0f3d106a5f3f15e47d7920118379a485838a78242399","spec_sha":"469c5108246648e0d25d5901ecb1c439627562f9f69a899b2e53ca1dd07f57b8","project_uri":"https://rubygems.org/gems/RedcapAPI","gem_uri":"https://rubygems.org/gems/RedcapAPI-0.0.6.gem","homepage_uri":"","wiki_uri":null,"documentation_uri":"https://www.rubydoc.info/gems/RedcapAPI/0.0.6","mailing_list_uri":null,"source_code_uri":null,"bug_tracker_uri":null,"changelog_uri":null,"funding_uri":null,"dependencies":{"development":[{"name":"bundler","requirements":"~> 1.6"},{"name":"csv","requirements":">= 0"},{"name":"nokogiri","requirements":">= 0"},{"name":"rake","requirements":">= 0"}],"runtime":[{"name":"json","requirements":">= 0"},{"name":"mechanize","requirements":">= 0"}]}}