提供: Bright Pattern Documentation
• 日本語

Revision as of 10:11, 21 September 2026 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeeplTranslate extension)

< 前へ | 次へ >
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
移動先: 案内検索
• English

転送

1件のやり取りをコンサルテーションコールに転送してください。

リクエスト

構文

転送(customTransferData?: CustomTransferData, mainCallId?: string, consultCallId?: string): Promise<OPERATIONRESULT<null>>

注:

boolean | undefined | null></nowiki>

パラメータ

パラメータ パラメータ値 データ型 オプション/必須 説明
customTransferData 文字列 オプション ここでは、受信者へのやり取りとともに転送される任意のカスタムデータを定義できます。
mainCallId 文字列 オプション 転送したいインタラクションの id です。特定されていませんなら、アクティブなインタラクションが使用されます。
consultCallId 文字列 オプション 転送先のコンサルテーションコールのインタラクションidです。特定されていませんなら、アクティブなインタラクションに関連付けられたコンサルテーションコールが使用されます。

リクエスト例

transferButton.onclick = () => {

    const mainItemId = mainItemIdInput.value

const consultCallId = consultCallIdInput.value

let transferData: any | null = null

try {

transferData = JSON.parse(transferDataTextarea.value)

    } catch (e) {

alert('転送データ構造に構文エラーがあります。JSON を解析できません。')

}

adApi.transfer(transferData, mainItemId, consultCallId)

}

戻り値

null

< 前へ | 次へ >