Skip to main content

shopify-documentation

Model​

For models most attributes should be self explanatory, here are some that might not be, for the rest pls take a look at code

ShopifyInstall (shopify_install.rb)​

shopify_access_token:string Acces token to make api requests on behalf of shop shop:string shop name section:boolean is there enabled or not (shopify section) data:text stores extra data (as per writing this doc, not sure why we have access_token duplicated)

:data => {
"access_token" => "access_token_to_make_api_requests_on_behalf_of_shop",
"scope" => "write_script_tags,write_content,write_themes,write_products"
},

more on shopify scopes


ShopifyEvent (shopify_event.rb)​

event:string event name (ex: install, uninstall, cancel etc) plan:string TODO


ShopifyShop (shopify_shop.rb)​

data:jsonb shopify shop details. more shop_id:integer shopify shop id (in their system) (note that data also contains shop_id)


ShopifyEmbed (shopify_embed.rb)​

TODO content_id:string content_type:string options: article, product, page, collection, everywhere position:string event:string data:string (json stored as string)

Controller​

Interactor​

Shopify::BaseInteractor​