2021-04-22 17:47:29 +00:00
|
|
|
/* global axios */
|
2019-12-28 16:26:42 +00:00
|
|
|
import ApiClient from './ApiClient';
|
|
|
|
|
|
|
|
class Inboxes extends ApiClient {
|
|
|
|
constructor() {
|
2020-03-09 17:57:10 +00:00
|
|
|
super('inboxes', { accountScoped: true });
|
2019-12-28 16:26:42 +00:00
|
|
|
}
|
2021-04-22 17:47:29 +00:00
|
|
|
|
2021-05-17 16:08:12 +00:00
|
|
|
getCampaigns(inboxId) {
|
|
|
|
return axios.get(`${this.url}/${inboxId}/campaigns`);
|
|
|
|
}
|
2021-08-31 09:42:05 +00:00
|
|
|
|
|
|
|
deleteInboxAvatar(inboxId) {
|
|
|
|
return axios.delete(`${this.url}/${inboxId}/avatar`);
|
|
|
|
}
|
2019-12-28 16:26:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default new Inboxes();
|