Below are the steps to properly use the Smartcare API. Before you are able to use this connection, you must have received the credentials from Smartcare support. The below example will be done using the program Postman.
Once you have retrieved your access token, you can use any of the APIs found at this link
Retrieving your Access Token:
1. Create a new Workspace called "Vanco Childcare" or "Smartcare"
- This can be named anything you'd like, the above is just for this example to be able to track it more easier
2. Create a new collection called "External API"
- This can be named anything you'd like, the above is just for this example to be able to track it more easier
3. Create a new request called "Login"
- This can be named anything you'd like, the above is just for this example to be able to track it more easier
4. Update the following fields to submit the request:
- Method: POST
- URL: https://auth.smart.care/connect/token
- Header: Content-type: application/x-www-form-urlencoded
- This is added under the Headers Tab
- Body: grant_type=client_credentials&client_id=@yourClientId&client_secret=@yourClientSecret&scope=external_api
- This can be added by clicking on Body > Raw > Text
5. If everything was entered correctly, you will receive a 200 response code and a json string with the access_token. The access token will be used to request the data from any of the available API's
- Available APIs: https://external-api.smart.care/swagger/ui/index#/