Created
July 4, 2018 13:00
-
-
Save cyberhck/e8c7d26902b0ce447d0352ad9d67fe67 to your computer and use it in GitHub Desktop.
medium posts
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("api.example.com/user/1/posts", {header: {Authorization: "Bearer: <JWT TOKEN>"}}) | |
.then(res => res.json()) | |
.then(res => { | |
console.log(res) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment