Skip to content

Interacting with Klipfolio API from command line

Eric-Alvarez edited this page Dec 3, 2017 · 11 revisions
  • Run all commands from Git Bash or Terminal
  • All examples are interacting with a specific Klipfolio endpoint that corresponds to CWS reports

GET Klipfolio Endpoint properties

curl https://app.klipfolio.com/api/1/datasources/f4fe3331f22c309aa31d3f69bfd1a0df/properties -X GET --header "kf-api-key:213a14d1e6e39c078bdecc0a6ae128d2749cef5c" -H Content-Type:application/json

Set the Klipfolio properties via PUT request (example is setting endpoint URL, replace 23 with desired patient's key)

curl https://app.klipfolio.com/api/1/datasources/f4fe3331f22c309aa31d3f69bfd1a0df/properties -X PUT -d "{'properties':{'endpoint_url':'http://quickforms3.eecs.uottawa.ca/quickforms/getResultSet?app=cws&queryLabel=getSummaryDataForKlipfolio&whereclause=patientsKey=23&params='}}" --header "kf-api-key:213a14d1e6e39c078bdecc0a6ae128d2749cef5c" -H Content-Type:application/json

Currently, the application sets the patient's key automatically when a patient is selected, this issue describes the process: https://github.com/uoForms/quickforms3/issues/92

Clone this wiki locally