Skip to content

Public Shopify Apps vs Custom Shopify Apps

Using ShopifySharp with a public Shopify app

Section titled “Using ShopifySharp with a public Shopify app”

Note: All instances of shopAccessToken in the examples below do not refer to your Shopify API key. An access token is the token returned after authenticating and authorizing a Shopify app installation with a real Shopify store.

All instances of myShopifyUrl refer to your users’ *.myshopify.com URL (although their custom domain should work too).

var service = new ProductService(myShopifyUrl, shopAccessToken);

Using ShopifySharp with a custom Shopify app

Section titled “Using ShopifySharp with a custom Shopify app”

ShopifySharp should work out of the box with any custom (aka private) Shopify application, all you need to do is replace the shopAccessToken with your private app’s password when initializing a ShopifyService:

var service = new ProductService(myShopifyUrl, privateAppPassword)

To generate an access token for a custom Shopify app, read Generating access tokens for custom Shopify apps.