Walmart Notes, Skuid script, etc

This commit is contained in:
Norm Rasmussen
2022-12-07 14:10:10 -05:00
parent c5dad714d9
commit 5742d0401c
13 changed files with 614 additions and 398 deletions

View File

@ -1,6 +1,7 @@
import requests
apiKey = "SlpQlju219WnWogn94dQUT6Yt"
# apiKey = "SlpQlju219WnWogn94dQUT6Yt"
apiKey = "VNDXh8K4tLYJ-Nvp78bo6w"
url = "https://api.northpass.com/v1/media"
# function = sys.argv[1]
@ -25,8 +26,9 @@ def putTest(apiKey, url):
def getTest(apiKey, url):
headers = {"accept": "application/json", "X-Api-Key": apiKey}
response = requests.get(url, headers=headers)
print(response.text)
# print(response.text)
jsonResponse = response.json()
# print(jsonResponse["data"][1]["attributes"])
def postTest(apiKey, url):
headers = {