Created
January 28, 2018 11:48
-
-
Save hakatashi/f32b62a7585fe97528ca95c8fdf23853 to your computer and use it in GitHub Desktop.
POST anonymous gist
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://api.github.com/gists', {mode: 'cors', method: 'POST', body: JSON.stringify({description: 'hoge', public: false, files: {'test.txt': {content: 'test'}}})}).then((res) => res.json()).then((data) => console.log(data)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment