2017-11-15 14 views
0

Also habe ich einen Account und eine Nachricht an meinen Skype-Bot verwendet.Skype Bot Rest API, 403 Der Bot darf die angeforderte Operation nicht ausführen

Empfangene Nachricht: {"text": "test", "type": "Nachricht", "timestamp": "2017-11-15T21: 52: 10.379Z", "id": "1510782730376", " channelId ":" skype "," serviceUrl ":" https://smba.trafficmanager.net/apis/ "," von ": {" id ":" 29: 1tJkKyeNp1o5xbMfK9hxF_U2s7huwsAKi4LMD0kOJbkg "}," conversation ": {" id ":" 29: 1tJkKyeNp1o5xbMfK9hxF_U2s7huwsAKi4LMD0kOJbkg "}," Empfänger " : {"id": "28: 8a75f591-62bf-422b-be6c-4b4b8bd1a576", "Name": "SKYPE_BOT"}, "Entitäten": [{"locale": "ru-RU", "country": " RU“, "Plattform": "Windows", "type": "client~~POS=TRUNC"}] "channelData": { "text": "test"}}

'POST' Anfrage URL gesendet: https://smba.trafficmanager.net/apis/v3/conversations/29:1tJkKyeNp1o5xbMfK9hxF_U2s7huwsAKi4LMD0kOJbkg/activities/1510782730376 Beitrag Parameter: {"replyToId": "1510782730376", "Empfänger": {"id": "29: 1tJkKyeNp1o5xbMfK9hxF_U2s7huwsAKi4LMD0kOJbkg"}, "von": {"name": "SKYPE_BOT", "id": "28: 8a7 5f591-62bf-422b-be6c-4b4b8bd1a576 "}," text ":" Hallo, test "," type ":" Nachricht "," Gebietsschema ":" ru "," Konversation ": {" id ":" 29: 1tJkKyeNp1o5xbMfK9hxF_U2s7huwsAKi4LMD0kOJbkg "}}

Response Code: 403 Nachricht Antwort: verboten ist

403 Der bot nicht die angeforderte Operation ausführen darf.

was mache ich falsch?

Antwort

0

mit dem Bot-Connector-Dienst zu kommunizieren, müssen Sie ein Zugriffstoken in den Autorisierungs-Header jeder API-Anfrage angeben, dieses Format:

Berechtigung: Bearer access_token

aus : https://docs.microsoft.com/en-us/bot-framework/rest-api/bot-framework-rest-connector-authentication#bot-to-connector

+0

Dies ist meine Kopfzeile: {Autorisierung = Träger eyJ0eXAiOiJKV1QiLC ............, Content-Type = Anwendung/json; charset = utf-8} –

+0

Bitte, irgendwelche Ideen –

+0

@FrankSinatra Sorry, ich habe keine Vorschläge basierend auf welche Informationen zur Verfügung gestellt wird. Kannst du deinen Bots Code irgendwo teilen? –