Smartcar is an API that allows mobile and web applications to communicate with vehicles across brands (think “check odometer” or “unlock doors.”). This guide will help you get up and running with the Smartcar API.
In this integration guide, we will use the iOS SDK to create an iOS application that displays your car's information.
SafariViewwith the Smartcar Authorization Dialog to request access to a user's vehicle. It does so using the Smartcar iOS or Android SDK. On the Smartcar Authorization Dialog, the user logs in with their vehicle credentials and grants the Application access to their vehicle.
SafariViewis redirected to a specified
redirect_urialong with an authorization
code. This will be the custom scheme set on the application. The Smartcar iOS or Android SDK receives the authorization in a view listening for the specified custom scheme URI, and passes it to the Mobile Application.
codeto the Application's back-end service.
codealong with the Application's client id and client secret.
access_token, the Application can now send requests to the Smartcar API. It can access protected resources and send commands from and to the user's vehicle, such as retrieve the location and unlock the doors.
Follow along with our integration guide to build our simple web application.
This guide is split into 3 sections -
access_tokenrequired to send a request to Smartcar
Let's get building!