... | ... | @@ -96,7 +96,7 @@ data_auth = { |
|
|
"domain": "API School"
|
|
|
}
|
|
|
|
|
|
response = requests.post(f"{URL}/auth/getToken", data=data_auth)
|
|
|
response = requests.post(f"{URL}/auth/getToken", json=data_auth)
|
|
|
|
|
|
result = response.json()
|
|
|
token = result["token"] # Get the bearer token from the json
|
... | ... | @@ -111,7 +111,7 @@ headers = { |
|
|
"Authorization": f"Bearer {token}"
|
|
|
}
|
|
|
|
|
|
response = requests.post(f"{URL}/app/create", data=data_app, headers=headers)
|
|
|
response = requests.post(f"{URL}/app/create", json=data_app, headers=headers)
|
|
|
|
|
|
result = response.json()
|
|
|
app_id = result["_id"] # Get the app id
|
... | ... | |