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

Undefined property: Webleit\ZohoCrmApi\Client::$leads #96

Open
harshvardhanbarhan opened this issue Aug 22, 2023 · 1 comment
Open

Undefined property: Webleit\ZohoCrmApi\Client::$leads #96

harshvardhanbarhan opened this issue Aug 22, 2023 · 1 comment

Comments

@harshvardhanbarhan
Copy link

I am getting issue like Undefined property: Webleit\ZohoCrmApi\Client::$leads
Here is my codebase

$oAuthClient = new \Weble\ZohoClient\OAuthClient(config('zoho.client_id'), config('zoho.client_secret'));
$oAuthClient->setRefreshToken(uniqid());
$oAuthClient->setRegion(\Weble\ZohoClient\Enums\Region::IN);

// setup the zoho crm client
$client = new \Webleit\ZohoCrmApi\Client($oAuthClient);
$client->setMode(\Webleit\ZohoCrmApi\Enums\Mode::PRODUCTION);

$zohoCrm = new \Webleit\ZohoCrmApi\Client($oAuthClient);
$leads = $zohoCrm->leads->getList();
dd($leads);

@Skullbock
Copy link
Contributor

Hi! It seems you're missing a step.

After creating Webleit\ZohoCrmApi\Client, you need create

$zoho = Webleit\ZohoCrmApi\ZohoCrm($zohoCrm)
and that one has the leads module property

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

2 participants