Last active
August 19, 2019 08:30
-
-
Save abehmiel/80a1a3ef008095ce9b8b7c0efca6e2d6 to your computer and use it in GitHub Desktop.
Basic Python API request
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
import requests | |
headers = {"token": "API TOKEN"} | |
params = {"something": "SOMETHING"} | |
response = requests.get("https://www.something.com", headers=headers, params=params) | |
json_data = response.json() | |
status = response.status_code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment