安装未列出的应用程序 shopify

Install unlisted app shopify

我找遍了所有地方,但找不到任何关于如何在 http://storetasker.com/ 上创建这样的 "Install App" 按钮的文档(不是我的网站,不推荐它们,只是一个例子)

抱歉这个简短的问题,我通常拒绝 post 在这里没有显示我已经尝试过的东西,但我什至找不到从哪里开始,因为上面发生的魔法 /merchant-install

应用不公开;也就是说 - shopify 不会托管它

他们正在使用 shopify 的 oauth 来允许 public 应用程序,如果你在这里查看 url 这是我用于测试我正在处理的东西的演示商店:

https://eurekasold.myshopify.com/admin/oauth/authorize?client_id=8bae04be58fc9957cde65b0e7ac242cf&scope=read_themes,write_themes&redirect_uri=https://app.storetasker.com/merchant/auth/shopify/callback

为了让您也这样做,我建议您查看此页面:

https://help.shopify.com/api/getting-started/authentication/oauth

您可以根据 Shopify 身份验证文档中描述的说明构建 url。

https://help.shopify.com/en/api/getting-started/authentication/oauth#step-2-ask-for-permission

我为自己制作的一个看起来像这样:

https://my-store.myshopify.com/admin/oauth/request_grant?client_id={api_key}&redirect_uri=https%3A%2F%2Fmy-app.com%2Fauth&scope=read_themes%2Cwrite_themes%2Cread_products%2Cwrite_products%2Cread_customers%2Cwrite_customers%2Cread_orders%2Cwrite_orders%2Cread_script_tags%2Cwrite_script_tags&state=5c9f319dcc43d72fe7

有关可能范围的列表,请参阅 API Access Scopes