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);
}
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