I want to make JSON requests for admin products search. I am getting '[API] That action is not currently supported' when I try to access this json api through curl
curl -H "Content-Type: application/json" \ https://user:firstname.lastname@example.org/admin/products/search.json?query=sku:abracadabra
The JSON request only works if I logged in to the myshopify admin, but it does not work when I authenticate with my app api key.
Is there a way around it? I need to search for products / orders in my rails app.
The search API endpoint is not currently part of the public API, we're working on adding it soon though! In the mean time you can request all the products and store them in your app at which point you can search them.