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) • 495 B
JavaScript
import { BaseService } from '../infrastructure';
/**
* A service for reading access scopes of the current access token
*/
export class AccessScopes extends 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");
}
}
export default AccessScopes;