libraries/botframework-connector/botframework/connector/token_api/aio/operations_async/_user_token_operations_async.py [124:181]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        custom_headers=None,
        raw=False,
        **operation_config
    ):
        """

        :param user_id:
        :type user_id: str
        :param connection_name:
        :type connection_name: str
        :param channel_id:
        :type channel_id: str
        :param resource_urls:
        :type resource_urls: list[str]
        :param dict custom_headers: headers that will be added to the request
        :param bool raw: returns the direct response alongside the
         deserialized response
        :param operation_config: :ref:`Operation configuration
         overrides<msrest:optionsforoperations>`.
        :return: dict or ClientRawResponse if raw=true
        :rtype: dict[str, ~botframework.tokenapi.models.TokenResponse] or
         ~msrest.pipeline.ClientRawResponse
        :raises:
         :class:`ErrorResponseException<botframework.tokenapi.models.ErrorResponseException>`
        """
        aad_resource_urls = models.AadResourceUrls(resource_urls=resource_urls)

        # Construct URL
        url = self.get_aad_tokens.metadata["url"]

        # Construct parameters
        query_parameters = {}
        query_parameters["userId"] = self._serialize.query("user_id", user_id, "str")
        query_parameters["connectionName"] = self._serialize.query(
            "connection_name", connection_name, "str"
        )
        if channel_id is not None:
            query_parameters["channelId"] = self._serialize.query(
                "channel_id", channel_id, "str"
            )
        query_parameters["api-version"] = self._serialize.query(
            "self.api_version", self.api_version, "str"
        )

        # Construct headers
        header_parameters = {}
        header_parameters["Accept"] = "application/json"
        header_parameters["Content-Type"] = "application/json; charset=utf-8"
        if custom_headers:
            header_parameters.update(custom_headers)

        # Construct body
        body_content = self._serialize.body(aad_resource_urls, "AadResourceUrls")

        # Construct and send request
        request = self._client.post(
            url, query_parameters, header_parameters, body_content
        )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



libraries/botframework-connector/botframework/connector/token_api/operations/_user_token_operations.py [120:177]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        custom_headers=None,
        raw=False,
        **operation_config
    ):
        """

        :param user_id:
        :type user_id: str
        :param connection_name:
        :type connection_name: str
        :param channel_id:
        :type channel_id: str
        :param resource_urls:
        :type resource_urls: list[str]
        :param dict custom_headers: headers that will be added to the request
        :param bool raw: returns the direct response alongside the
         deserialized response
        :param operation_config: :ref:`Operation configuration
         overrides<msrest:optionsforoperations>`.
        :return: dict or ClientRawResponse if raw=true
        :rtype: dict[str, ~botframework.tokenapi.models.TokenResponse] or
         ~msrest.pipeline.ClientRawResponse
        :raises:
         :class:`ErrorResponseException<botframework.tokenapi.models.ErrorResponseException>`
        """
        aad_resource_urls = models.AadResourceUrls(resource_urls=resource_urls)

        # Construct URL
        url = self.get_aad_tokens.metadata["url"]

        # Construct parameters
        query_parameters = {}
        query_parameters["userId"] = self._serialize.query("user_id", user_id, "str")
        query_parameters["connectionName"] = self._serialize.query(
            "connection_name", connection_name, "str"
        )
        if channel_id is not None:
            query_parameters["channelId"] = self._serialize.query(
                "channel_id", channel_id, "str"
            )
        query_parameters["api-version"] = self._serialize.query(
            "self.api_version", self.api_version, "str"
        )

        # Construct headers
        header_parameters = {}
        header_parameters["Accept"] = "application/json"
        header_parameters["Content-Type"] = "application/json; charset=utf-8"
        if custom_headers:
            header_parameters.update(custom_headers)

        # Construct body
        body_content = self._serialize.body(aad_resource_urls, "AadResourceUrls")

        # Construct and send request
        request = self._client.post(
            url, query_parameters, header_parameters, body_content
        )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



