Skip to content

Commit

Permalink
Merge pull request #71 from iamEAP/smart-campaigns
Browse files Browse the repository at this point in the history
Add support for new(er) smartCampaigns endpoint
  • Loading branch information
pcothenet authored Dec 31, 2019
2 parents 99eefd3 + a333adc commit f341536
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/api/campaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ Campaign.prototype = {
});
return this._connection.get(path, {data: options});
},

getSmartCampaigns: function(options) {
var path = util.createAssetPath( 'smartCampaigns.json' );
options = _.extend({}, options, {
_method: 'GET'
});
return this._connection.get(path, {query: options});
},
};

module.exports = Campaign;

0 comments on commit f341536

Please sign in to comment.