ConnectorFactoryImpl class
- Extends
Конструкторы
| Connector |
Методы
| create(string, string) |
Сведения о конструкторе
ConnectorFactoryImpl(string, string, string, boolean, ServiceClientCredentialsFactory, ConnectorClientOptions)
new ConnectorFactoryImpl(appId: string, toChannelFromBotOAuthScope: string, loginEndpoint: string, validateAuthority: boolean, credentialFactory: ServiceClientCredentialsFactory, connectorClientOptions?: ConnectorClientOptions)
Параметры
- appId
-
string
Идентификатор приложения.
- toChannelFromBotOAuthScope
-
string
Канал из области oauth бота.
- loginEndpoint
-
string
URL-адрес входа.
- validateAuthority
-
boolean
Используемое значение центра проверки.
- credentialFactory
- ServiceClientCredentialsFactory
Для использования ServiceClientCredentialsFactory.
- connectorClientOptions
- ConnectorClientOptions
ConnectorClientOptions использовать при создании connectorClients.
Сведения о методе
create(string, string)
function create(serviceUrl: string, audience?: string): Promise<ConnectorClient>
Параметры
- serviceUrl
-
string
URL-адрес службы клиента.
- audience
-
string
Аудитория, используемая для исходящего взаимодействия. Она будет отличаться от облачной среды.
Возвращаемое значение
Promise<ConnectorClient>
Новый экземпляр класса ConnectorClient.