2020-01-13 05:47:03 +00:00
|
|
|
/* global axios */
|
2020-01-01 17:00:43 +00:00
|
|
|
import ApiClient from './ApiClient';
|
|
|
|
|
|
|
|
class ContactAPI extends ApiClient {
|
|
|
|
constructor() {
|
2020-03-09 17:57:10 +00:00
|
|
|
super('contacts', { accountScoped: true });
|
2020-01-01 17:00:43 +00:00
|
|
|
}
|
2020-01-13 05:47:03 +00:00
|
|
|
|
|
|
|
getConversations(contactId) {
|
|
|
|
return axios.get(`${this.url}/${contactId}/conversations`);
|
|
|
|
}
|
2020-01-01 17:00:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default new ContactAPI();
|