Skip to content

Instantly share code, notes, and snippets.

@pankpan
Last active June 1, 2021 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pankpan/ad68f50cd44c1dae9203d29964d579e5 to your computer and use it in GitHub Desktop.
Save pankpan/ad68f50cd44c1dae9203d29964d579e5 to your computer and use it in GitHub Desktop.
Skype Bot API get token BASH script
#!/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