Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Sumit Joshi joshisumit

🎯
Focusing
View GitHub Profile
@joshisumit
joshisumit / python_request_create_gist.py
Last active Sep 26, 2022
Create GIST from your python code with python requests module and OAuth token.
View python_request_create_gist.py
'''
HTTP Reuests has following parameters:
1)Request URL
2)Header Fields
3)Parameter
4)Request body
'''
#!/usr/bin/env python
import requests
View credentials
auth_url=http://192.168.1.11:5000/v2.0/
tenant=admin
username= admin
password= devstack123