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) 681 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ApiPermissions = void 0; const infrastructure_1 = require("../infrastructure"); /** * A service for revoking all API permissions (making the access token unusable after this). */ class ApiPermissions extends infrastructure_1.BaseService { constructor(shopDomain, accessToken) { super(shopDomain, accessToken, "api_permissions"); } /** * Deletes all api permissions for this app (revokes access token). */ delete() { return this.createRequest("DELETE", `current.json`); } } exports.ApiPermissions = ApiPermissions; exports.default = ApiPermissions;