Basic-Shopify-API icon indicating copy to clipboard operation
Basic-Shopify-API copied to clipboard

Object of type Osiset\BasicShopifyAPI\BasicShopifyAPI is not callable

Open Samoual opened this issue 3 years ago • 0 comments

when i run the code iam getting this error Object of type Osiset\BasicShopifyAPI\BasicShopifyAPI is not callable this my code :- `$options = new Options(); $options->setVersion('2020-01'); $result = User::findOrFail(1); $shopname= $result->name; $api = new BasicShopifyAPI($options); $apix = new BasicShopifyAPI($options); $api->setSession(new Session($shopname, $result->password)); foreach ($result as $key => $value) { $products=$apix()->rest('GET','/admin/api/2021-10/orders/'.$value->shopify_orderid.'.json'); dd($products); }

` I am Using v10.0.5

Samoual avatar Jun 16 '22 19:06 Samoual