Created
September 27, 2020 18:27
-
-
Save Interfiber/1d2ea237f12b9927085da86b92e26553 to your computer and use it in GitHub Desktop.
Create a Github Gist with the github api
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
# Generate a Github Token Under Settings/Developer Settings/Personal Access Tokens Create A New one with | |
# The gist premisson and copy and paste the string it gitves you in the place of "YOUR_AUTH_TOKEN_HERE" | |
# | |
curl -X POST -H "Authorization: token YOUR_AUTH_TOKEN_HERE" https://api.github.com/gists -d '{"public":true,"files":{"file1":{"content":"File One Content"}, "file2":{"content":"File2 content"}}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment