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

How can I call the Help Center in the API #9

Open
nguyendachuy opened this issue Jun 26, 2017 · 1 comment
Open

How can I call the Help Center in the API #9

nguyendachuy opened this issue Jun 26, 2017 · 1 comment

Comments

@nguyendachuy
Copy link

Hi all,

I call:
Zendesk::helpCenter->articles()->findAll();
or
$zd = new \Zendesk();
$zd->helpCenter->articles()->findAll();

Error:
ErrorException
Undefined property: Huddle\Zendesk\Facades\Zendesk::$helpCenter

How can i call help center?
Thanks for watching

@tom-huddle
Copy link
Contributor

Please update to the latest version (2.3) and then follow the dependency injection instructions here: https://github.com/huddledigital/zendesk-laravel#dependency-injection. Alternatively use $zendesk_service = new \Huddle\Zendesk\Services\ZendeskService();

Then use as follows: $zendesk_service->helpCenter->articles()->findAll();

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