get( $apiUrl, [ 'headers' => [ 'Api-Token' => $apiToken, 'Api-Account-Token' => $apiAccountToken, 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'query' => [ 'v'=> '2.0.0', ], ] ); $data = json_decode($response->getBody()->getContents(), true); $items = $data['items']; return $items; } }