Skip to content

Instantly share code, notes, and snippets.

Last active September 14, 2020 14:40
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Пример работы с подсказками DaData на JScript + XMLHTTP
function suggest(resource, query) {
var http = new ActiveXObject("MSXML2.XMLHTTP");"POST", "" + resource, false);
http.setRequestHeader("Content-Type", "application/json");
http.setRequestHeader("Authorization", "Token " + API_KEY);
var data = "{ \"query\": \"" + query + "\" }";
return http.responseText;
resp = suggest("party", "7719402047");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment