mirror of
https://github.com/michivonah/themepark-alerts.git
synced 2025-12-22 20:36:27 +01:00
create python file with api request
This commit is contained in:
parent
d754195092
commit
51245f762e
2 changed files with 16 additions and 0 deletions
14
main.py
Normal file
14
main.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import requests
|
||||
|
||||
endpoint = "https://api.wartezeiten.app/v1/waitingtimes"
|
||||
|
||||
header = {
|
||||
"language":"de",
|
||||
"park":"europapark"
|
||||
}
|
||||
|
||||
req = requests.get(url = endpoint, params = header)
|
||||
|
||||
result = req.json()
|
||||
|
||||
print(result)
|
||||
Loading…
Add table
Add a link
Reference in a new issue