gnikyt / Basic-Shopify-API

A simple API wrapper for Shopify using Guzzle for REST and GraphQL
MIT License
220 stars 66 forks source link

Object of type Osiset\BasicShopifyAPI\BasicShopifyAPI is not callable #133

Open Samoual opened 2 years ago

Samoual commented 2 years ago

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