ConnectorFactory class
現在の appId に適した資格情報を使用して ConnectorClients を作成するために使用されるファクトリ クラス。
メソッド
create(string, string) | ConnectorClient インスタンスの作成に使用されるファクトリ メソッド。 |
メソッドの詳細
create(string, string)
ConnectorClient インスタンスの作成に使用されるファクトリ メソッド。
function create(serviceUrl: string, audience?: string): Promise<ConnectorClient>
パラメーター
- serviceUrl
-
string
クライアントの URL。
- audience
-
string
クライアントが使用する資格情報の対象ユーザー。
戻り値
Promise<ConnectorClient>
serviceUrl で対象ユーザーにアクティビティを送信するための ConnectorClient 。