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.

21 lines (20 loc) 659 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AccessScopes = void 0; const infrastructure_1 = require("../infrastructure"); /** * A service for reading access scopes of the current access token */ class AccessScopes extends infrastructure_1.BaseService { constructor(shopDomain, accessToken) { super(shopDomain, accessToken, "admin/oauth/access_scopes"); } /** * Gets a list of all access scopes enabled for this access token. */ list() { return this.createRequest("GET", ".json", "access_scopes"); } } exports.AccessScopes = AccessScopes; exports.default = AccessScopes;