【发布时间】:2023-01-19 05:19:21
【问题描述】:
我想查看这个特定的标题:X_SHOPIFY_SHOP_API_CALL_LIMIT
当我这样做时:
CreateShopifyClientService.call(shop)
begin
response = ShopifyAPI::InventoryLevel.find(:all, params: { inventory_item_ids: product.inventory_item_id})
byebug
rescue Exception => e
byebug
end
我已经尝试了几乎所有我能想到的方法,包括查看 gem 上的测试但找不到神秘的标头。
以下是我的一些徒劳的尝试:
(byebug) ap response.header
*** NoMethodError Exception: undefined method "header' for #<ShopifyAPI::PaginatedCollection:0x000055b39213c9c8>
(byebug) ap response.headers
*** NoMethodError Exception: undefined method "headers' for #<ShopifyAPI::PaginatedCollection:0x000055b39213c9c8>
【问题讨论】:
标签: ruby shopify shopify-api