This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://learn.microsoft.com/en-us/advertising/guides/authentication-oauth-get-tokens?view=bingads-13 | |
set -e | |
# check if CLIENT_ID and CLIENT_SECRET variable are set | |
if [[ -z $CLIENT_ID ]]; then | |
echo "Environment variable CLIENT_ID is not set" 1>&2 | |
exit 1 |