Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to obtain authorization token for skype bot apis?

I want to create a skype bot and am referring to https://developer.microsoft.com/en-us/skype/bots/docs/api/chat , for authorization the doc refers to https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-protocols-oauth-code/ but it is unclear about the scope to be mentioned for using skype bot apis.

So can anybody tell me how to obtain authorization token for making skype bot rest api calls.

like image 603
Hitesh Raghuvanshi Avatar asked Mar 13 '23 15:03

Hitesh Raghuvanshi


1 Answers

try this

curl -X POST -H "Cache-Control: no-cache" -H "Content-Type: application/x-www-form-urlencoded" -d 'client_id=<your-app-id>&client_secret=<your-app-secret>&grant_type=client_credentials&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default' 'https://login.microsoftonline.com/common/oauth2/v2.0/token'
like image 200
Roman Ivanitsky Avatar answered Mar 24 '23 01:03

Roman Ivanitsky