Giter Site home page Giter Site logo

ekaushas / angular-edmunds Goto Github PK

View Code? Open in Web Editor NEW

This project forked from austinthedeveloper/angular-edmunds

0.0 1.0 0.0 152 KB

A collection of services that pull from the Edmunds API

License: GNU General Public License v2.0

JavaScript 100.00%

angular-edmunds's Introduction

angular-edmunds

A collection of services that pull from the Edmunds API

##Demo Plunkr

  • The demo updates when the input loses focus. The function can easily be attached to a button.

##Requirements

##Installation

  • Open the edmunds-service.js and edit this line with your API key:
    • var key = API_KEY
  • Include edmundsApi in your module: angular.module('myApp', ['edmundsApi']);
  • Inject edmundsService into your controllers/directives/etc.

##Example Call:

$scope.vinLookup = function() {
    if($scope.vin === undefined) { return; }
    if($scope.vin.length == 17) {
        var vin = $scope.vin;
        edmundsService.get(vin).then(function(data) {
          $scope.data = data;
        });
    }   
}

##Services

  • getVin(vin): Get vehicle information based on the Vin given
    • vin: Required. Full 17-code VIN.
  • getShortVin(shortVin): Same as getVin but accepts the shortened version of the VIN. It will do the shortening for you.
    • shortVin: Required. Pass in the full 17-code VIN and it will shorten the VIN for you.
  • getPicture(make, model, year): Gets pictures based on the Make, Model, and Year.
    • make: Required. Takes the niceName version of the Make.
    • model: Required. Takes the niceName version of the Model.
    • year: Required. 4-letter version of year.
  • getMakes(year): Get all car Makes.
    • year: Optional. Pass this value in to get Makes only from that year.
  • getModels(make, year): Get all Models for a Make
    • make: Required. Takes the niceName version of the Make.
    • year: Optional. Pass this value in to get Models only from that year.

angular-edmunds's People

Contributors

austinthedeveloper avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.