@pieromqwerty/

PDSS Beta

Python

No description

fork
loading
Files
  • main.py
  • migrations
  • shortener
  • __init__.py
  • admin.py
  • apps.py
  • manager.py
  • models.py
  • poetry.lock
  • pyproject.toml
  • requirements.txt
  • urls.py
  • views.py
main.py
1
2
3
4
5
6
7
import requests
url = 'https://api.jsonbin.io/b/5d9e13964b16120bb2e12473'
headers = {'Content-Type': 'application/json', 'secret-key': '$2b$10$wPmVV74NF.EFYj7S2LD6DettKU1IYbbI7CdajtOpdr9Yy.J5FoMfG'}
data = {"Sample": "Hello World"}

req = requests.put(url, json=data, headers=headers)
print(req.content)