Tomek
Tomek

Reputation: 1190

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

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

Upvotes: 2

Views: 1178

Answers (1)

John Duff
John Duff

Reputation: 38568

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.

Upvotes: 1

Related Questions