Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
api:manual [2020/02/18 17:32] – [Authentication header] Lauri Elevantapi:manual [2020/02/18 17:52] – [Authentication header] Lauri Elevant
Line 39: Line 39:
  
 Here is a quick way to make your first API request: Here is a quick way to make your first API request:
 +  
 +  curl -X GET -H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" https://apply.uni.edu/api/institutions
  
-  wget -qO- --header="Authorization: DREAM apikey=\"YOUR-API-KEY\"" http://apply.uni.edu/api/institutions | python -m json.tool +On the request above, ''apply.uni.edu'' is the domain for your DreamApply installation. It may also be in the form of "your-uni.dreamapply.com" if you have not yet configured the domain in DreamApply settings. Tip - you can add ''| python -m json.tool'' to the end of the command if you expect to receive JSON data (not all API queries return JSON) to prettify the output.
- +
-On the request above, ''apply.uni.edu'' is the domain for your DreamApply installation. It may also be in the form of "your-uni.dreamapply.com" if you have not yet configured the domain in DreamApply settings. You can skip the last part of the command ''| python -m json.tool'', it is only there to prettify the output.+
 ===== Versioning ===== ===== Versioning =====