Skip to content

Instantly share code, notes, and snippets.

@Meekohi
Created November 24, 2015 20:05
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 Meekohi/b74138b052b3de277241 to your computer and use it in GitHub Desktop.
Save Meekohi/b74138b052b3de277241 to your computer and use it in GitHub Desktop.
Make a request to the Arqspin API
$.get("//api.arqspin.com/nodeapi/search/5bttd9qwtx6adlihe7el?query=HJC37859",function(data){
var spinid = data.spins[0].shortid;
if(spinid)
$(".product_image").append("<iframe src='//spins0.arqspin.com/iframe.html?spin="+spinid+"' width=512 height=512></iframe>");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment