Last updated
Last updated
Once you have set up a project App, you can then request an access token using your Client ID and Client Secret.
PLEASE NOTE: access tokens are valid for 2 hours after they are issued.
We assume the base domain is five.epicollect.net
POST /api/oauth/token
therefore https://five.epicollect.net/api/oauth/token
Here is an example based on our EC5 API Private project, using jQuery ():
)
Please note you cannot access the data using a browser!
If you run the code above, this is the response you get:
grant_type
yes
Must have value 'client_credentials'.
client_id
yes
The Client ID of your project App.
client_secret
yes
The Client Secret of your project App.