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.
21 lines (17 loc) • 580 B
text/typescript
import { BaseService } from '../infrastructure';
import { AccessScope } from '../interfaces';
/**
* A service for reading access scopes of the current access token
*/
export class AccessScopes extends BaseService {
constructor(shopDomain: string, accessToken: string) {
super(shopDomain, accessToken, "admin/oauth/access_scopes");
}
/**
* Gets a list of all access scopes enabled for this access token.
*/
public list() {
return this.createRequest<AccessScope[]>("GET", ".json", "access_scopes");
}
}
export default AccessScopes;