Skip to content

Commit

Permalink
making import campaign fn name standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajal Singhal committed Mar 11, 2024
1 parent ebef523 commit d4eaf0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/resources/campaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class LinkUnlinkNumberResponse {
* @promise {object} return {@link PlivoGenericResponse} object
* @fail {Error} return Error
*/
importcamp(campaign_id, campaign_alias, params = {}) {
import_campaign(campaign_id, campaign_alias, params = {}) {
params.campaign_id=campaign_id;
params.campaign_alias=campaign_alias;
return super.customexecuteAction(action + 'Import/', 'POST', params);
Expand Down
2 changes: 1 addition & 1 deletion test/campaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
})
});
if('import campaign', function (){
return client.campaign.importcamp('CNTQ0OD','New Contact by vinay for ct')
return client.campaign.import_campaign('CNTQ0OD','New Contact by vinay for ct')
.then(function(campaign){
assert.equal(campaign.campaignId, 'CNTQ0OD')
})
Expand Down

0 comments on commit d4eaf0c

Please sign in to comment.