From 57cf09c0a5193dea694642eb34e9db20fcdc8dfa Mon Sep 17 00:00:00 2001 From: Dhruv Chauhan Date: Wed, 13 Apr 2022 15:17:42 +0530 Subject: [PATCH] update linkNumber req payload --- lib/resources/campaign.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/resources/campaign.js b/lib/resources/campaign.js index 5879e85a..7256cc89 100644 --- a/lib/resources/campaign.js +++ b/lib/resources/campaign.js @@ -176,13 +176,13 @@ export class LinkUnlinkNumberResponse { * linkNumber link number to Campaign * @method * @param {string} campaignID - * @param {string} number + * @param {list} numbers * @promise {object} return {@link Campaign} object * @fail {Error} return Error */ - linkNumber(campaignID, number) { + linkNumber(campaignID, numbers) { let params = {} - params.number=number; + params.numbers=numbers; let client = this[clientKey]; return new Promise((resolve, reject) => { client('POST', action+campaignID+'/Number/', params)