From ca092b929c0e4c466d93c39f5275e6ddbf615ade Mon Sep 17 00:00:00 2001 From: Kyle Delaney Date: Tue, 14 Jan 2020 14:50:12 -0800 Subject: [PATCH] Update README.rst --- libraries/botframework-connector/README.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/botframework-connector/README.rst b/libraries/botframework-connector/README.rst index fc196f30a..aec6b1e92 100644 --- a/libraries/botframework-connector/README.rst +++ b/libraries/botframework-connector/README.rst @@ -39,9 +39,9 @@ Client creation (with authentication), conversation initialization and activity .. code-block:: python - from microsoft.botbuilder.schema import * - from microsoft.botframework.connector import ConnectorClient - from microsoft.botframework.connector.auth import MicrosoftTokenAuthentication + from botbuilder.schema import * + from botframework.connector import ConnectorClient + from botframework.connector.auth import MicrosoftAppCredentials APP_ID = '' APP_PASSWORD = '' @@ -50,7 +50,7 @@ Client creation (with authentication), conversation initialization and activity BOT_ID = '' RECIPIENT_ID = '' - credentials = MicrosoftTokenAuthentication(APP_ID, APP_PASSWORD) + credentials = MicrosoftAppCredentials(APP_ID, APP_PASSWORD) connector = ConnectorClient(credentials, base_url=SERVICE_URL) conversation = connector.conversations.create_conversation(ConversationParameters( @@ -130,4 +130,4 @@ Licensed under the MIT_ License. .. _MSRC PGP: https://technet.microsoft.com/en-us/security/dn606155 .. _Security TechCenter: https://github.com/Microsoft/vscode/blob/master/LICENSE.txt -.. `_ \ No newline at end of file +.. `_