Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

5. Paged Results

SimplyUnnamed edited this page Aug 13, 2021 · 1 revision

Some endpoints provide information in pages, meaning you need to call the endpoint multiple times to get each page.

you can see if this is the case on the https://esi.evetech.net/ui/#/ site by seeing if there is a 'page' parameter on the endpoint.

We will use Character assets as an example

namespace App\Jobs\Characters;

class Assets extends \LaravelEveTools\EveApi\Jobs\Assets\Characters\Assets
{

    public function handle()
    {
        while(true){           
            $assets = $this->retrieve();
            
            //handle page of assets
            
            if(!$this->nextPage($assets->pages))
                break;
        }
    }
}

Clone this wiki locally