How to use the Rails shopify_app gem with a privat

2019-05-24 20:11发布

问题:

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.