Skip to content

Instantly share code, notes, and snippets.

@lecano
Last active May 3, 2019 17:58
Show Gist options
  • Select an option

  • Save lecano/00f00abcf72ee92b983f80e9ef101a6b to your computer and use it in GitHub Desktop.

Select an option

Save lecano/00f00abcf72ee92b983f80e9ef101a6b to your computer and use it in GitHub Desktop.
dnisunat-call
var data = new FormData();
data.append("dni", "06477277");
data.append("token", "de17febe-402a-4177...");
var xhr = new XMLHttpRequest();
xhr.open("POST", "https://api.migoperu.pe/api/v1/dni");
xhr.setRequestHeader("Accept", "application/json");
xhr.send(data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment