Issue summary
Before opening this issue, I have:
When calling ShopifyAPI::Customer.search the result is an ShopifyAPI::Clients::HttpResponse object. This is pretty different than other API's, most (all?) of which seem to return resource objects
Expected behavior
Returned value should be an array of Customer Objects
Actual behavior
It's an HTTPResponse Object
Steps to reproduce the problem
Demonstrating a call:
3.4.1 :049 > ShopifyAPI::Customer.search(query: "email:tim@example.com")
=>
#<ShopifyAPI::Clients::HttpResponse:0x000000012c452bd0
@api_call_limit={request_count: 1, bucket_size: 40},
@body=
{"customers" =>
[{"id" => 7209130524768,
"email" => "tim@example.com",
So as a client I have to do this:
ShopifyAPI::Customer.search(query: "email:tim@example.com").body["customers"].map { ShopifyAPI::Customer.new(from_hash: it) }
Debug logs
// Paste any relevant logs here
Issue summary
Before opening this issue, I have:
shopify_apiversion: 14.8.0log_level: :debugin my configuration, if applicableWhen calling
ShopifyAPI::Customer.searchthe result is an ShopifyAPI::Clients::HttpResponse object. This is pretty different than other API's, most (all?) of which seem to return resource objectsExpected behavior
Returned value should be an array of Customer Objects
Actual behavior
It's an HTTPResponse Object
Steps to reproduce the problem
Demonstrating a call:
So as a client I have to do this:
Debug logs