Dealermade

API Docoumentation

View My GitHub Profile

Media Layer API

<script src="//dealermade.com/assets/media-layer/v2/dm.js" 
data-dm-dealership-id="DEALERMADE DEALERSHIP ID" 
data-dm-vehicle-vin="VEHICLE VIN"></script>

The above script will insert the media layer next to the script tag.

Required attributes of script tag:

Optional Attributes of script tag to configure media layer tag placement:

Example Media Layer Implementation:

<script src="//dealermade.com/assets/media-layer/v2/dm.js" 
data-dm-dealership-id="team-of-navasota" 
data-dm-vehicle-vin="1FTEW1EF4FFA24461"
data-dm-element-id-to-replace="vpActualContent"
data-dm-element-ids-to-hide="dtlExpand"></script>

Thumbnail API

We currently have two alternatives for a thumbnail API:

  1. Thumbnail Image URL API
  2. Thumbnail JavaScript API

Please choose the API that is most convenient for you.

1. Thumbnail Image URL API

http://dealermade.com/api/1/dealerships/DEALERMADE DEALERSHIP ID/vehicles/VEHICLE VIN/images/PICTURE SIZE.jpg?default_image_url=[your image url for the vehicle goes here]

Required parameters in the image url:

Example Thumbnail Image API Implementation:

<img src="//dealermade.com/api/1/dealerships/team-of-navasota/vehicles/1FTFW1ET3DKD06282/images/preview.jpg?default_image_url=http%3A%2F%2Ftagoreimg.d2fs.net%2Fimg%2Fused%2Fford%2Ff-150%2F1ftfw1et3dkd06282%2F3777d222-6258-4cf3-b694-6d6acd014c01.jpeg%3Fw%3D160%26h%3D120"/>

2. Thumbnail JavaScript API

To add our thumbnail javascript API, just add our javascript tag to any page that have thumbnails:

<script data-dealership-id="DEALERMADE DEALERSHIP ID" src="//dealermade.com/assets/thumbnails/v1/api.js">
</script>

And add the data-thumbnail-vin html attribute populated with the vehicle vin to any image tags for vehicles.

<img src="Your image url here" data-thumbnail-vin="VEHICLE VIN HERE">

Support - Having trouble with our media layer?

Please contact us at (888) 403-9143.