Created
October 21, 2011 05:04
-
-
Save softwaregravy/1303146 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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