Update httpPost.md

This commit is contained in:
Angelos Chalaris
2018-01-10 21:31:48 +02:00
committed by GitHub
parent 4b906d2094
commit 30a641f41f

View File

@ -28,7 +28,7 @@ const newPost = {
"body": "bar bar bar"
};
const data = JSON.stringify(newPost);
httpPost('https://website.com/posts', console.log, data; /*
httpPost('https://jsonplaceholder.typicode.com/posts', console.log, data; /*
Logs: {
"userId": 1,
"id": 1337,