Skip to content

Instantly share code, notes, and snippets.

@lambdamusic
lambdamusic / python_request_create_gist.py
Last active June 8, 2024 03:21 — forked from joshisumit/python_request_create_gist.py
Create GIST from your python code with python requests module and OAuth token.
'''
HTTP Reuests has following parameters:
1)Request URL
2)Header Fields
3)Parameter
4)Request body
PREREQUISITE
* head over to https://github.com/settings/tokens and generate a new token with 'gists' permissions