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 trying to do $client->helpCenter->categories()->iterator()I get the warning
Warning: Undefined property: stdClass::$help_center/categories in /vendor/zendesk/zendesk_api_client_php/src/Zendesk/API/Traits/Utility/Pagination/CbpStrategy.php on line 29
This seems to stem from the Zendesk\API\Resources\HelpCenter\ResourceAbstract prepending help_center/ to the key that is later used by Zendesk\API\Traits\Utility\Pagination\CbpStrategy to get the data from the response.
I'm using zendesk/zendesk_api_client_php version v3.1.0
The text was updated successfully, but these errors were encountered:
I have the same issue when trying to use the iterator for articles: $client->helpCenter->articles()->iterator().
I get an exception thrown:
Notice: Undefined property: stdClass::$help_center/articles
from vendor/zendesk/zendesk_api_client_php/src/Zendesk/API/Traits/Utility/Pagination/CbpStrategy.php:29
The stdclass it's trying to access has an articles key, but not the help_center/articles key.
Seems like you can set $objectNamePlural = 'articles' in the zendesk Article class to work around this in the shortterm.
Additionally, I get an invalid cursor error when trying to fetch the next page - seems like the cursor needs to be urlencoded as the cursor I got contained a + char which was then sent as is. If I urlencode the cursor then it also seems to work
When trying to do
$client->helpCenter->categories()->iterator()
I get the warningThis seems to stem from the
Zendesk\API\Resources\HelpCenter\ResourceAbstract
prependinghelp_center/
to the key that is later used byZendesk\API\Traits\Utility\Pagination\CbpStrategy
to get the data from the response.I'm using zendesk/zendesk_api_client_php version v3.1.0
The text was updated successfully, but these errors were encountered: