๐ Shopify Planet API (TypeScript)
This is a TypeScript wrapper around Shopify Planet API which enables to get neccessary information about brands which use Shopify Planet App. Currently, it only supports Server side (not Browsers).
This library may have breaking changes in the future.
- Install library
yarn add shopify-planet-api
- Create API client
import {ShopifyPlanetApi} from 'shopify-planet-api';
const planetApi = new ShopifyPlanetApi({
// For credentials, please contact Shopify Planet Team
clientId,
token,
});
- Make first API call
const {shop} = await this.shopify.planetApi.getShopInfo({
shopifyDomain: 'some-store.myshopify.com',
});
console.log(shop); // -> { allShipmentsCarbonNeutral: true }