Skip to content

Commit e97e302

Browse files
Kyle Delaneyaxelsrz
andcommitted
Update README.rst (#608)
Co-authored-by: Axel Suárez <[email protected]>
1 parent 88a8ea1 commit e97e302

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libraries/botframework-connector/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ Client creation (with authentication), conversation initialization and activity
3939

4040
.. code-block:: python
4141
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
4545
4646
APP_ID = '<your-app-id>'
4747
APP_PASSWORD = '<your-app-password>'
@@ -50,7 +50,7 @@ Client creation (with authentication), conversation initialization and activity
5050
BOT_ID = '<bot-id>'
5151
RECIPIENT_ID = '<user-id>'
5252
53-
credentials = MicrosoftTokenAuthentication(APP_ID, APP_PASSWORD)
53+
credentials = MicrosoftAppCredentials(APP_ID, APP_PASSWORD)
5454
connector = ConnectorClient(credentials, base_url=SERVICE_URL)
5555
5656
conversation = connector.conversations.create_conversation(ConversationParameters(
@@ -130,4 +130,4 @@ Licensed under the MIT_ License.
130130
.. _MSRC PGP: https://technet.microsoft.com/en-us/security/dn606155
131131
.. _Security TechCenter: https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
132132

133-
.. <https://technet.microsoft.com/en-us/security/default>`_
133+
.. <https://technet.microsoft.com/en-us/security/default>`_

0 commit comments

Comments
 (0)