Edmunds-javascript-sdk is a project mainly written in JavaScript, based on the Apache-2.0 license.
The Edmunds' API JavaScript SDK
The Edmunds JavaScript SDK is an Open Source tool that allows you to utilize Edmunds data on your website. Except as otherwise noted, the Edmunds JavaScript SDK is licensed under the Apache 2.0 License.
Instantiate the Vehicle API class and use its methods to get access to Edmunds' data:
// Instantiate the Vehicle class
var vehicle_api = new EDMUNDSAPI.Vehicle(api_key);
// Get a list of all makes available on Edmunds.com
vehicle_api.getAllMakes(function(data) {
alert('Hi, I'm a callback function that is invoked when the API returns a response.');
// The data object is the JSON object returned by the API
console.log(data);
});
This is a beta release. We have opened sourced it at this stage to guide the development of the library and allow you to freely inspect and use the source.
The API documentation is available to the public APIs here.