UNPKG

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.

24 lines (23 loc) 822 B
import { BaseService } from '../infrastructure'; /** * A service for manipulating Shopify shops. */ export class Shops extends BaseService { constructor(shopDomain, accessToken) { super(shopDomain, accessToken, ""); } /** * Returns shop data for the shop. * @param options Options for filtering the result. */ get(options) { return this.createRequest("GET", "shop.json", "shop", options); } /** * Forces the shop to uninstall your Shopify app. Uninstalling an application is an irreversible operation. Be entirely sure that you no longer need to make API calls for the shop in which the application has been installed. */ forceUninstallApp() { return this.createRequest("DELETE", "api_permissions/current.json"); } } export default Shops;