Skip to content

smartcar/getting-started-java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is the starter kit for Java SDK.

This kit contains a simple web application that displays car information using Smartcar's Java SDK.

Instructions

Before we get started, create an application on Smartcar's Developer Dashboard to get your API keys.

Note: On the dashboard, you will want to set your redirect_uri as http://localhost:8000/exchange.

Then, we can set these as environment variables or directly set them in the application -

$ export SMARTCAR_CLIENT_ID=<your-client-id>
$ export SMARTCAR_CLIENT_SECRET=<your-client-secret>
$ export SMARTCAR_REDIRECT_URI=<your-redirect-uri>

Make sure you have cloned this repo -

$ git clone git@github.com:smartcar/getting-started-java-sdk.git
$ cd getting-started-java-sdk/app

To install the required dependencies and run this Java app -

$ ./gradlew run

Once your server is up and running, you can authenticate your vehicle. In our current set up, we are using Smartcar's simulated mode, which will allow you to log in with simulated credentials or any username and password. To authenticate, navigate to http://localhost:8000/login. Once you have authenticated, go to http://localhost:8000/vehicle to see your vehicle information.

Next Steps

Read our API Docs to learn what else you can do with Smartcar's API.

Learn more about the Java SDK and how it can be used.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9

Languages