badmark / meteor-edmunds

Edmunds API packaged for meteor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meteor Edmund's API

Meteor package for Edmund's Javscript SDK.

Tested with Meteor 0.8.0

Edmund's API doc

To install package

$ meteor add edmunds

Set your API Key

if (Meteor.isClient) {
  Meteor.startup(function () {
    Edmunds.key = 'YOUR API KEY';
  });
}

Usage example (client)

{{> Edmunds color="grey"}}

As defined in their Terms Of Service, point 7.5, we must include an Edmunds Web Logo within our app, so the color parameter is optionnal and define which image to pick from their API branding guide

Possible color values: white (default), grey, red

Usage example within a modal

<template name="testEdmunds">
	<div class="modal show fade in" id="edmunds-modal" data-backdrop="true" style="width:auto">
		<div class="modal-header">
			<button class="close" data-dismiss="modal">×</button>
			<h3>Select a car</h3>
		</div>
		<div class="modal-body">
			<form class="form-horizontal">
				{{> Edmunds color="grey"}}
			</form>
		</div>
		<div class="modal-footer">
			<a href="#" class="btn" data-dismiss="modal">Close</a><!-- note the use of "data-dismiss" -->
			<a href="#" class="btn btn-primary" id="save-profile">Save</a>
		</div>
		
	</div>
</template>

Display our modal test

{{> testEdmunds}}

Example result

About

Edmunds API packaged for meteor


Languages

Language:JavaScript 85.3%Language:HTML 12.2%Language:CSS 2.4%