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() {
|
|
|
|
super('contacts');
|
|
|
|
}
|
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();
|