Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,8 +12,8 @@ def get_amadeus_token():
|
|
| 12 |
url = "https://test.api.amadeus.com/v1/security/oauth2/token"
|
| 13 |
data = {
|
| 14 |
"grant_type": "client_credentials",
|
| 15 |
-
"client_id":
|
| 16 |
-
"client_secret":
|
| 17 |
}
|
| 18 |
response = requests.post(url, data=data)
|
| 19 |
return response.json().get("access_token")
|
|
|
|
| 12 |
url = "https://test.api.amadeus.com/v1/security/oauth2/token"
|
| 13 |
data = {
|
| 14 |
"grant_type": "client_credentials",
|
| 15 |
+
"client_id": API_KEY,
|
| 16 |
+
"client_secret": API_SECRET,
|
| 17 |
}
|
| 18 |
response = requests.post(url, data=data)
|
| 19 |
return response.json().get("access_token")
|