File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
libraries/botframework-connector Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ Client creation (with authentication), conversation initialization and activity
39
39
40
40
.. code-block :: python
41
41
42
- from microsoft. botbuilder.schema import *
43
- from microsoft. botframework.connector import ConnectorClient
44
- from microsoft. botframework.connector.auth import MicrosoftTokenAuthentication
42
+ from botbuilder.schema import *
43
+ from botframework.connector import ConnectorClient
44
+ from botframework.connector.auth import MicrosoftAppCredentials
45
45
46
46
APP_ID = ' <your-app-id>'
47
47
APP_PASSWORD = ' <your-app-password>'
@@ -50,7 +50,7 @@ Client creation (with authentication), conversation initialization and activity
50
50
BOT_ID = ' <bot-id>'
51
51
RECIPIENT_ID = ' <user-id>'
52
52
53
- credentials = MicrosoftTokenAuthentication (APP_ID , APP_PASSWORD )
53
+ credentials = MicrosoftAppCredentials (APP_ID , APP_PASSWORD )
54
54
connector = ConnectorClient(credentials, base_url = SERVICE_URL )
55
55
56
56
conversation = connector.conversations.create_conversation(ConversationParameters(
@@ -130,4 +130,4 @@ Licensed under the MIT_ License.
130
130
.. _MSRC PGP : https://technet.microsoft.com/en-us/security/dn606155
131
131
.. _Security TechCenter : https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
132
132
133
- .. <https://technet.microsoft.com/en-us/security/default>`_
133
+ .. <https://technet.microsoft.com/en-us/security/default>`_
You can’t perform that action at this time.
0 commit comments