Mizuno notes and other items, such as scripts.

This commit is contained in:
Norm Rasmussen
2022-12-05 15:07:58 -05:00
parent ca2b56b6ed
commit c5dad714d9
21 changed files with 4903 additions and 357 deletions

View File

@ -2,18 +2,17 @@ import requests
apiKey = "SlpQlju219WnWogn94dQUT6Yt"
url = "https://api.northpass.com/v1/media"
#function = sys.argv[1]
# function = sys.argv[1]
def putTest(apiKey, url):
payload = {
"data":
{
"type":"media",
"file_name":"/Users/normrasmussen/Downloads/Shopping&Delivery 9 XP.mp4",
}
}
"data": {
"type": "media",
"file_name": "/Users/normrasmussen/Downloads/Shopping&Delivery 9 XP.mp4",
}
}
headers = {
"accept": "application/json",
"content-type": "application/json",
@ -24,10 +23,7 @@ def putTest(apiKey, url):
def getTest(apiKey, url):
headers = {
"accept": "application/json",
"X-Api-Key": apiKey
}
headers = {"accept": "application/json", "X-Api-Key": apiKey}
response = requests.get(url, headers=headers)
print(response.text)
@ -36,7 +32,7 @@ def postTest(apiKey, url):
headers = {
"accept": "application/json",
"content-type": "application/json",
"X-Api-Key": apiKey
"X-Api-Key": apiKey,
}
response = requests.post(url, headers=headers)
print(response.text)