camelot-unchained
Version:
Camelot Unchained Client Library
26 lines (25 loc) • 904 B
JavaScript
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
;
var apisauce_1 = require('apisauce');
var createOptions_1 = require('./createOptions');
var api = apisauce_1.create(createOptions_1.default);
var groupsAPI = {
getInvitesForCharacter: function getInvitesForCharacter(shard, characterID) {
return api.call('groups/getInvitesForCharacter', {
shardID: shard,
characterID: characterID
});
},
getInvitesForGroup: function getInvitesForGroup(shard, groupID) {
return api.call('groups/getInvitesForGroup', {
shardID: shard,
groupID: groupID
});
}
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = groupsAPI;