feat: Add Contacts page (#1335)

Co-authored-by: Sojan <sojan@pepalo.com>
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
Nithin David Thomas 2020-11-10 15:25:26 +05:30 committed by GitHub
parent 2babfd6148
commit f214c9c47c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 1163 additions and 179 deletions

View file

@ -6,9 +6,17 @@ class ContactAPI extends ApiClient {
super('contacts', { accountScoped: true });
}
get(page) {
return axios.get(`${this.url}?page=${page}`);
}
getConversations(contactId) {
return axios.get(`${this.url}/${contactId}/conversations`);
}
search(search = '', page = 1) {
return axios.get(`${this.url}/search?q=${search}&page=${page}`);
}
}
export default new ContactAPI();