Skip to content

Instantly share code, notes, and snippets.

@psiniemi
Created June 13, 2016 09:17
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 psiniemi/d2f8032b9652267b71683923c910ade0 to your computer and use it in GitHub Desktop.
Save psiniemi/d2f8032b9652267b71683923c910ade0 to your computer and use it in GitHub Desktop.
xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() { if (xhttp.readyState == 4 && xhttp.status == 200) { console.log(JSON.stringify(JSON.parse(xhttp.responseText), null, ' ')); } };
xhttp.open("GET", "https://cdp6p0g7f1.execute-api.eu-west-1.amazonaws.com/v1/search?query=Länsi&chainId=5", true);
xhttp.send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment