mirror of
https://github.com/donl/plivo-node.git
synced 2026-06-30 06:12:08 -06:00
callback support for brand, campaign and link number api
This commit is contained in:
parent
b4b1761632
commit
f5ac22de50
2 changed files with 3 additions and 6 deletions
|
|
@ -87,8 +87,7 @@ export class BrandCreationResponse {
|
|||
* @promise {object} return {@link PlivoGenericResponse} object
|
||||
* @fail {Error} return Error
|
||||
*/
|
||||
create(brand_alias,profile_uuid,brand_type,secondary_vetting) {
|
||||
let params = {};
|
||||
create(brand_alias,profile_uuid,brand_type,secondary_vetting, params = {}) {
|
||||
params.brand_alias=brand_alias;
|
||||
params.profile_uuid=profile_uuid;
|
||||
params.brand_type=brand_type;
|
||||
|
|
|
|||
|
|
@ -120,8 +120,7 @@ export class LinkUnlinkNumberResponse {
|
|||
* @promise {object} return {@link PlivoGenericResponse} object
|
||||
* @fail {Error} return Error
|
||||
*/
|
||||
create(brand_id,campaign_alias,vertical,usecase,sub_usecases,description,embedded_link,embedded_phone,age_gated,direct_lending,subscriber_optin,subscriber_optout,subscriber_help,sample1,sample2) {
|
||||
let params = {}
|
||||
create(brand_id,campaign_alias,vertical,usecase,sub_usecases,description,embedded_link,embedded_phone,age_gated,direct_lending,subscriber_optin,subscriber_optout,subscriber_help,sample1,sample2, params = {}) {
|
||||
params.brand_id=brand_id;
|
||||
params.campaign_alias=campaign_alias;
|
||||
params.vertical=vertical;
|
||||
|
|
@ -182,8 +181,7 @@ export class LinkUnlinkNumberResponse {
|
|||
* @promise {object} return {@link Campaign} object
|
||||
* @fail {Error} return Error
|
||||
*/
|
||||
linkNumber(campaignID, numbers) {
|
||||
let params = {}
|
||||
linkNumber(campaignID, numbers, params = {}) {
|
||||
params.numbers=numbers;
|
||||
let client = this[clientKey];
|
||||
return new Promise((resolve, reject) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue