get all mailing lists in a single shot for now
This commit is contained in:
@@ -2202,7 +2202,14 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
};
|
||||
|
||||
Client.prototype.listMailingLists = function (domain, callback) {
|
||||
get('/api/v1/mail/' + domain + '/lists', null, function (error, data, status) {
|
||||
var config = {
|
||||
params: {
|
||||
page: 1,
|
||||
per_page: 1000
|
||||
}
|
||||
};
|
||||
|
||||
get('/api/v1/mail/' + domain + '/lists', config, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user