【发布时间】:2014-12-05 13:38:59
【问题描述】:
我正在尝试为我的 shopify 开发实例获取所有客户的列表,但无论我如何使用 Shopify_API Gem 构建客户 API 调用,我总是返回 Nil。
customers = ShopifyAPI::Customer.all 返回 nil,.find 与 params 的变体也是如此。而示例products = ShopifyAPI::Product.all 返回所有products。根据文档,我应该能够让客户回来,但我不能......我的 shopify 实例中有 5 个。
我将应用设置为私有应用,并为 shopifyAPI 设置 base.site,如下所示 ShopifyAPI::Base.site = "https://apikey:password@storename.myshopify.com"
任何帮助将不胜感激。
【问题讨论】:
标签: ruby-on-rails ruby shopify