Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Samoual opened this issue Jun 16, 2022 · 0 comments
Open

Comments

@Samoual
Copy link

Samoual commented Jun 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant