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:

By default, the media layer will be placed in the same element as the script tag. However, the media layer can be displayed ina different area, with the folliwing placement attributes. Note that they are mutually exclusive, and not to be used in conjunction with one another. Only ONE of the following optional attributes should be used per script tag:

Other optional attributes:

The media layer will remain invisible until pictures have been taken for the vehicle using the dealermade photo studio, also the element ids listed in data-dm-element-ids-to-hide will not be hidden unless the media layer has loaded with pictures.

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-replace-element-id="vpActualContent"
data-dm-hide-element-ids="dtlExpand dtlExpand2"></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.