如何使用带有私有 API 密钥的 Rails shopify_app gem? [英] How to use the Rails shopify_app gem with a private API key?

查看:59
本文介绍了如何使用带有私有 API 密钥的 Rails shopify_app gem?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用带有私有 API 密钥的 Rails *shopify_app* gem.gem 的文档提到可以做到这一点,但没有说明如何做到.这些说明仅适用于 Shopify 合作伙伴帐户.

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.

对于私有 api 密钥,似乎无法指定 返回 url.这会导致以下响应片段被发回:

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"}

我环顾四周,但找不到解决方案.这似乎应该在 Shopify API wiki 上更好地记录.如果您对此有任何帮助,我将不胜感激.

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.

干杯,

-托梅克

推荐答案

您是否正在尝试请求许可?您应该可以使用为私钥生成的密码作为访问令牌,因为权限已经被授予.

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.

这篇关于如何使用带有私有 API 密钥的 Rails shopify_app gem?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆