inventora-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.
20 lines (17 loc) • 489 B
text/typescript
import { BaseService } from '../infrastructure';
import { Policy } from '../interfaces';
/**
* A service for reading a shop's policies.
*/
export class Policies extends BaseService {
constructor(shopDomain: string, accessToken: string) {
super(shopDomain, accessToken, "policies");
}
/**
* Gets a list of the shop's policies.
*/
public list() {
return this.createRequest<Policy[]>("GET", ".json", "policies");
}
}
export default Policies;