zendesk / zendesk_api_client_php

Official Zendesk API v2 client library for PHP
336 stars 259 forks source link

CBP tickets #511

Closed ecoologic closed 11 months ago

ecoologic commented 12 months ago

Introducing CBP Iterator for Tickets.

This will be generalized in coming PR.

Usage: See README and tests, but basically:

$ticketsIterator = $client->tickets()->iterator();
foreach ($ticketsIterator as $ticket) {
    process($ticket) // Your implementation
}

Note that this PR doesn't address sorting and other params yet. It will be added in a different iteration.