Skip to content

Commit

Permalink
Add support for new(er) smartCampaigns endpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamEAP committed Nov 20, 2019
1 parent 276fb8a commit a333adc
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 a333adc

Please sign in to comment.