Skip to content

Commit

Permalink
Merge pull request #319 from plivo/campaign-import
Browse files Browse the repository at this point in the history
campaign filter with campaign source
  • Loading branch information
narayana-plivo authored Oct 16, 2023
2 parents eb193fc + 61022bc commit 8e3d9c4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [v4.58.0](https://github.com/plivo/plivo-node/tree/v4.58.0) (2023-10-16)
**Introducing camapign_source field**
- campaign_source field added for LIST / GET

## [v4.57.0](https://github.com/plivo/plivo-node/tree/v4.57.0) (2023-09-21)
**Support starter brand**
Expand Down
2 changes: 1 addition & 1 deletion lib/resources/campaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class LinkUnlinkNumberResponse {
/**
* Get All Campaign Detail
* @method
* @param {object} params - params brand and usecase to get all campaign details.
* @param {object} params - params brand_id, usecase, campaign_source to get all campaign details.
* @promise {object[]} returns list of campaign Object
* @fail {Error} returns Error
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plivo",
"version": "4.57.0",
"version": "4.58.0",
"description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML",
"homepage": "https://github.com/plivo/plivo-node",
"files": [
Expand Down
8 changes: 7 additions & 1 deletion test/campaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ import {
assert.equal(response.campaigns.length, 2)
})
});


it('list campaign with param', function () {
return client.campaign.list({campaign_source:'plivo'})
.then(function (response) {
assert.equal(response.campaigns.length, 2)
})
});
it('create campaign', function () {
return client.campaign.create("B8OD95Z","campaign name sssample","INSURANCE","MIXED",[
"CUSTOMER_CARE",
Expand Down

0 comments on commit 8e3d9c4

Please sign in to comment.