Reputation: 11
Does someone know how to accept file received by MS bot via skype connector? On bot side it looks like URL to files, but I need instruction how to authorize to access them:
Attachment: {
"contentType": "application/octet-stream",
"contentUrl": "https://df-apis.skype.com/v2/attachments/0-weu-d1-8ce3f64a740658ec8f227311edacc258/views/original",
"thumbnailUrl": "https://df-apis.skype.com/v2/attachments/0-weu-d1-8ce3f64a740658ec8f227311edacc258/views/thumbnail"
}
Upvotes: 1
Views: 631
Reputation: 10573
The Skype attachment URLs are secured by JwtToken, you should set the JwtToken of your bot as the authorization header for the GET request your bot initiates to fetch the image. See the following for some sample code.
Upvotes: 2