name: RedcapAPI
description: 
    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&#39;s own url, and each project has it&#39;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(&#39;%F&#39;) format. 
  for example
    data = {name: &#39;this is a test&#39;, field_2: Date.today}
    r.post(data) # creates a new object using the fields above. field names must match those in the existing project
    &quot;{\&quot;count\&quot;: 1}&quot; --&amp;gt; indicates the object posted. 
  
  to update an existing record:
  data = {record_id: 3, name: &#39;this is a test to update&#39;, 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
  
  
license_spdx: MIT
version: 0.0.6a
spec_version: 1.0
download_url: https://rubygems.org/downloads/RedcapAPI-0.0.6a.gem
news_url: https://libraries.io/rubygems/RedcapAPI/versions.atom
date: 2015-06-18
about_resource: NONE
libraries_io_url: https://libraries.io/rubygems/RedcapAPI?number=0.0.6a
