Mizuno notes and other items, such as scripts.
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user