You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: