From ea18874fad064cc02b5f3f83c9c949fcdf9ec1d1 Mon Sep 17 00:00:00 2001 From: Subhojit Paul Date: Mon, 24 Sep 2018 11:35:24 +0530 Subject: [PATCH] Faster top level folder load --- src/Client.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 8aabe65..994a8eb 100755 --- a/src/Client.php +++ b/src/Client.php @@ -268,7 +268,12 @@ public function getTopLevelFolders() { $response = $this->client->request( "GET", $this->baseUrl . '/folders/0', - ['headers' => $this->getDefaultHeaders()] + [ + 'headers' => $this->getDefaultHeaders(), + 'query' => [ + 'getchildren' => 'false', + ], + ] ); $folder_data = json_decode($response->getBody());