Created
March 26, 2019 16:55
-
-
Save omariosouto/90301ae5a4ed60939afc38701042bb44 to your computer and use it in GitHub Desktop.
This file contains hidden or 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(`https://twitelum-api.herokuapp.com/tweets`, { | |
| method: 'POST', | |
| body: JSON.stringify({ conteudo: 'aaa', login: 'omariosouto' }), | |
| headers: { | |
| 'content-type': 'application/json' | |
| } | |
| }) | |
| .then(function (data) { | |
| return data.json() | |
| }) | |
| .then(function (novoTweet) { | |
| console.log(novoTweet) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment