From 7aba574b63415a6c276cc9b24e876ba7b0a5bbf1 Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Fri, 31 Jan 2025 16:36:33 -0500 Subject: [PATCH] Update Documentation.md (#973) --- Documentation.md | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Documentation.md b/Documentation.md index 3320d06..6e78eae 100644 --- a/Documentation.md +++ b/Documentation.md @@ -1495,11 +1495,13 @@ Optional success and failure callbacks can be provided to determine if the opera ```js // endpoint: Endpoint Object contact.addParticipant(endpoint, { - success: function () { - /* ... */ - }, - failure: function (err) { - /* ... */ + callback: { + success: function () { + /* ... */ + }, + failure: function (err) { + /* ... */ + }, }, }); ``` @@ -1515,11 +1517,13 @@ This API is **only** supported in **Voice** and **Chat**. Will return an error i ```js // endpoint: Endpoint Object contact.transfer(endpoint, { - success: function () { - /* ... */ - }, - failure: function (err) { - /* ... */ + callback: { + success: function () { + /* ... */ + }, + failure: function (err) { + /* ... */ + }, }, }); ```