Skip to content

Instantly share code, notes, and snippets.

@softwaregravy
Created October 21, 2011 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softwaregravy/1303146 to your computer and use it in GitHub Desktop.
Save softwaregravy/1303146 to your computer and use it in GitHub Desktop.
<html>
<body>
<script type="text/javascript">
var lat = 40.733722;
var lon = -73.990683;
var id = "1234567890";
var api_endpoint = "api-sandbox.thinknear.com";
var link_endpoint = "m2-s.thinknear.com";
var api_key = "YOUR API KEY";
var app_id = "YOUR APP ID";
var content = "<div id=\"thinknear\"><a href=\"http://" + link_endpoint + "/offers/saved/" + id + "?app_id=" + app_id + "\">" +
"<img src=\"http://" + api_endpoint + "/1.1/ad_units/banner.jpg?api_key=" + api_key + "&loc_latitude=" + lat + "&loc_longitude=" + lon + "&id=" + id + "\"/>" +
"</a></div>";
document.write(content);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment