Skip to content

Commit

Permalink
parking-offstreet-sta: improve curl-calls.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Jul 29, 2024
1 parent ccba430 commit 56a0777
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions data-collectors/parking-offstreet-sta/curl-calls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ FREE_PLACES_PATH=/api/Facility/GetFreePlaces

# auth
printf "\nauth\n"
curl -H 'Content-Type:application/x-www-form-urlencoded' \
"$API_OAUTH_TOKEN_URI?grant_type=password&username=$API_OAUTH_USERNAME&client_id=STA&client_secret=$API_OAUTH_PASSWORD&password=$API_OAUTH_PASSWORD"

CURL="curl -H 'Content-Type:application/x-www-form-urlencoded'"
URL="$API_OAUTH_TOKEN_URI?grant_type=password&username=$API_OAUTH_USERNAME&client_id=STA&client_secret=$API_OAUTH_PASSWORD&password=$API_OAUTH_PASSWORD"

printf "$CURL $URL \n"
$CURL "$URL"
printf "\n###############\n"


0 comments on commit 56a0777

Please sign in to comment.