Skip to content

REDCap External Module APIs

Aditya Chinchure edited this page Aug 25, 2020 · 4 revisions

getData:

Internally uses REDCap::getData() API function to get results

POST /?type=module&prefix=leap_connector&NOAUTH&page=getData

With form-data:

{'auth': self.config["redcap_auth"], 'pid': project_id, 'filters': filter_logic, 'fields': selected_fields}

getQueryResult:

This accepts an SQL query that will run on REDCap::query() and the results are returned without any modification

POST /type=module&prefix=leap_connector&NOAUTH&page=getQueryResult

With form-data:

{'auth': self.config["redcap_auth"], 'query': query}