You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ PHPCap is a PHP API (Application Programming Interface) for REDCap.
7
7
8
8
REDCap is a web application for building and managing online surveys and databases. For information about REDCap, please see http://www.project-redcap.org.
PHPCap is a PHP API (Application Programming Interface) for REDCap.
7
5
8
6
REDCap is a web application for building and managing online surveys and databases. For information about REDCap, please see http://www.project-redcap.org.
<spanclass="php-var">$apiUrl</span> = <spanclass="php-quote">'https://redcap.someplace.edu/api/'</span>;<spanclass="php-comment"># Replace with your REDCap's API URL</span>
46
+
<spanclass="php-var">$apiToken</span> = <spanclass="php-quote">'1234567890A1234567890B1234567890'</span>;<spanclass="php-comment"># Replace with your API token</span>
<spanclass="php-var">$apiUrl</span> = <spanclass="php-quote">'https://redcap.xxxxx.edu/api/'</span>; <spanclass="php-comment"># replace this URL with your institution's</span>
80
80
<spanclass="php-comment"># REDCap API URL.</span>
@@ -87,7 +87,34 @@ <h3>Create your first test program.</h3>
<spanclass="php-var">$apiUrl</span> = <spanclass="php-quote">'https://redcap.xxxxx.edu/api/'</span>; <spanclass="php-comment"># replace this URL with your institution's</span>
129
156
<spanclass="php-comment"># REDCap API URL.</span>
@@ -136,7 +163,38 @@ <h3>Making your test program secure.</h3>
<spanclass="php-var">$apiUrl</span> = <spanclass="php-quote">'https://redcap.xxxxx.edu/api/'</span>; <spanclass="php-comment"># replace this URL with your institution's</span>
179
+
<spanclass="php-comment"># REDCap API URL.</span>
180
+
181
+
<spanclass="php-var">$apiToken</span> = <spanclass="php-quote">'1234567890A1234567890B1234567890'</span>; <spanclass="php-comment"># replace with your actual API token</span>
<spanclass="php-keyword1">print</span><spanclass="php-quote">"The following error occurred: </span><spanclass="php-var">{$exception->getMessage()}</span><spanclass="php-quote">\n"</span>;
191
+
<spanclass="php-keyword1">print</span><spanclass="php-quote">"Here is a stack trace:\n"</span>;
0 commit comments