From d94997cb359e0aba9d059f2538fba29c52407b05 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 18 Sep 2017 14:00:22 +0200 Subject: add getData --- getdata.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 getdata.sh diff --git a/getdata.sh b/getdata.sh new file mode 100755 index 0000000..d2f0a7b --- /dev/null +++ b/getdata.sh @@ -0,0 +1,25 @@ +#!/bin/sh +set -x +#@GET("friendsfinder/joinGroup") +#@GET("closingtimes") +#@GET("emotion") +#@GET("events") +#@GET("friendsfinder/getGroupMembers") +#@GET("hotelevents") +#@GET("openingtimes") +#@GET("showtimes") +#@GET("waitingtimes") +#@GET("weather") +#@GET("friendsfinder/joinGroup") +#@GET("friendsfinder/requestFriendsLocations") +#@GET("friendsfinder/updateLocation") +#@GET("friendsfinder/updateToken") + +token=$(java GenToken) + +#curl -A "okhttp/2.7.5" "https://api.europapark.de/api-5.4/events?mock=false&token=$token" | jq . > events +curl -A "okhttp/2.7.5" "https://api.europapark.de/api-5.4/openingtimes?mock=false&token=$token" | jq . > openingtimes +curl -A "okhttp/2.7.5" "https://api.europapark.de/api-5.4/closingtimes?mock=false&token=$token" | jq . > closingtimes +#curl -A "okhttp/2.7.5" "https://api.europapark.de/api-5.4/showtimes?mock=false&token=$token" | jq . > showtimes +curl -A "okhttp/2.7.5" "https://api.europapark.de/api-5.4/waitingtimes?mock=false&token=$token" | jq . > waitingtimes.json +#curl -A "okhttp/2.7.5" "https://api.europapark.de/api-5.4/weather?mock=false&token=$token" | jq . > weather -- cgit v1.2.3