-
-
Save applenob/8e2eff843ff0bcc71c87fa8731cac489 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