18 lines
338 B
JavaScript
Executable File
18 lines
338 B
JavaScript
Executable File
/* global axios */
|
|
|
|
import ApiClient from '../ApiClient';
|
|
|
|
class ShopifyAPI extends ApiClient {
|
|
constructor() {
|
|
super('integrations/shopify', { accountScoped: true });
|
|
}
|
|
|
|
getOrders(contactId) {
|
|
return axios.get(`${this.url}/orders`, {
|
|
params: { contact_id: contactId },
|
|
});
|
|
}
|
|
}
|
|
|
|
export default new ShopifyAPI();
|