shopify-admin-api
Version:
Shopify Admin API is a NodeJS library built to help developers easily authenticate and make calls against the Shopify API. It was inspired by and borrows heavily from ShopifySharp.
17 lines (16 loc) • 414 B
JavaScript
import { BaseService } from '../infrastructure';
/**
* A service for reading a shop's policies.
*/
export class Policies extends BaseService {
constructor(shopDomain, accessToken) {
super(shopDomain, accessToken, "policies");
}
/**
* Gets a list of the shop's policies.
*/
list() {
return this.createRequest("GET", ".json", "policies");
}
}
export default Policies;