Created
October 16, 2017 03:24
-
-
Save no1xsyzy/d4cf2638288fe6d4165c19ad02e1ff42 to your computer and use it in GitHub Desktop.
fetch demo for pms-final
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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