Last active
June 1, 2021 14:11
-
-
Save pankpan/ad68f50cd44c1dae9203d29964d579e5 to your computer and use it in GitHub Desktop.
Skype Bot API get token BASH script
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 | |
# Get skype bot token to send message, fill your CLIENT_ID and CLIENT_SECRET | |
CLIENT_ID= | |
CLIENT_SECRET= | |
TOKEN=`curl -sd "client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&grant_type=client_credentials&scope=https://api.botframework.com/.default" https://login.microsoftonline.com/common/oauth2/v2.0/token | jq -r .request_token` | |
echo $TOKEN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment