I'm using the Ruby wrapper for Shopify's API and I want to search for products based on the SKU's.
Here's what I'm currently trying:
ShopifyAPI::Product.find(sku: 'wi196217')
# => ActiveResource::ResourceNotFound: Failed. Response code = 404. Response message = Not Found.
# from /Users/narzero/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activeresource-4.0.0/lib/active_resource/connection.rb:144:in `handle_response'
I've also tried:
require 'curb'
p = Curl.get('https://<REDACTED>:<REDACTED>@<REDACTED>.myshopify.com/admin/products/search.json?query=sku:wi196217')
puts p.body
# => "{\"errors\":\"[API] That action is not currently supported.\"}"
What should I try next?