How to use the Rails shopify_app gem with a private API key?

匿名 (未验证) 提交于 2019-12-03 01:34:02

问题:

I am trying to use the Rails *shopify_app* gem with a private API key. The documentation for the gem mentions that it's possible to do this but doesn't say how. The instructions are only for a Shopify Partner Account.

For a private api key there seems to be no way of specifying the return url. This results in the following response fragment being sent back:

{"error":"invalid_request","error_description":"The redirect_uri and application url must have matching hosts"} 

I've looked around a bit but was not able to find a solution to this. It seems like this should be better documented on Shopify API wiki. I'd appreciate any help with this.

cheers,

-tomek

回答1:

Are you trying to request permission? You should be able to use the password generated for the private key as the access token since permission has already been granted.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!