Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions libraries/botframework-connector/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<your-app-id>'
APP_PASSWORD = '<your-app-password>'
Expand All @@ -50,7 +50,7 @@ Client creation (with authentication), conversation initialization and activity
BOT_ID = '<bot-id>'
RECIPIENT_ID = '<user-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(
Expand Down Expand Up @@ -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

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