Skip to content

Instantly share code, notes, and snippets.

@no1xsyzy
Created October 16, 2017 03:24
Show Gist options
  • Save no1xsyzy/d4cf2638288fe6d4165c19ad02e1ff42 to your computer and use it in GitHub Desktop.
Save no1xsyzy/d4cf2638288fe6d4165c19ad02e1ff42 to your computer and use it in GitHub Desktop.
fetch demo for pms-final
fetch("http://118.31.185.146:5000/api/v1/optimization", {
method: "POST",
headers:{
"Content-Type":"application/json"
},
body:JSON.stringify(["9527","9528","9529"])
})
.then(x=>x.json())
.then(JSON.stringify)
.then(console.log)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment