In this guide we’ll go over how to use Vehicle Simulator to test out Smartcar using Postman.
Parameter | Description |
---|---|
Auth URL | https://connect.smartcar.com/oauth/authorize?approval_prompt=force |
Access Token URL | https://auth.smartcar.com/oauth/token |
Client ID | client_id from your Dashboard |
Client Secret | client_secret from your Dashboard |
Scope | A space-separated list of permissions that your application is requesting access to |
Parameter | Description |
---|---|
Auth URL | https://connect.smartcar.com/oauth/authorize?approval_prompt=force&mode=simulated |
Access Token URL | https://auth.smartcar.com/oauth/token |
Client ID | client_id from your Dashboard |
Client Secret | client_secret from your Dashboard |
Scope | A space-separated list of permissions that your application is requesting access to |
access_token
from the OAuth 2.0 Authorization flow we went through in the steps above.vehicle Id
. A vehicle Id
is a unique identifier for a vehicle on Smartcar’s platform.
This can be done with the All Vehicles
request. Making this request will assign the vehicle Id
to the {{vehicle_id}}
variable for other requests in the Collection.
EV Battery Level
, we can see the response matches the vehicle state on the simulator
I’m getting an Invalid Credentials error in the Connect flow
I’m getting a 403 - Permission error on API requests
/permissions
endpoint to see what endpoints you have access to.