public function retrieveFolder($id, $depth = 0, $includeProperties = true, $includeObjectCounts = false, CachePolicy $cachePolicy = null)
    {
        $parameters = [
            'query' => ['depth' => $depth, 'includeProperties' => $includeProperties, 'includeObjectCounts' => $includeObjectCounts],
            'body' => json_encode([], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->get('v1/folders/' . $id . '', $parameters, $cachePolicy);
        $result = new FolderResponse($result);

        return $result;
    }
public function retrieveFolder($id, $depth = 0, $includeProperties = true, $includeObjectCounts = false, CachePolicy $cachePolicy = null)
    {
        $parameters = [
            'query' => ['depth' => $depth, 'includeProperties' => $includeProperties, 'includeObjectCounts' => $includeObjectCounts],
            'body' => json_encode([], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->get('v1/folders/' . $id . '', $parameters, $cachePolicy);
        $result = new FolderResponse($result);

        return $result;
    }
public function retrieveFolder ( $ id , $ depth = 0 , $ includeProperties = true , $ includeObjectCounts = false , CachePolicy $ cachePolicy = null ) { $ parameters = [ 'query' => [ 'depth' => $ depth , 'includeProperties' => $ includeProperties , 'includeObjectCounts' => $ includeObjectCounts ] , 'body' => json_encode ( [ ] , JSON_UNESCAPED_UNICODE ) , 'headers' => [ ] , ] ; $ result = $ this -> get ( 'v1/folders/' . $ id . '' , $ parameters , $ cachePolicy ) ; $ result = new FolderResponse ( $ result ) ; return $ result ; }
Fetches a specific Folder.

Fetches a Folder by the specified identifier.

@param int         $id                  The Folder identifier..
@param int         $depth               The depth for which to include existing subfolders. Use zero to exclude them all together..
@param bool        $includeProperties   Whether to return the properties for each folder..
@param bool        $includeObjectCounts Whether to return the number of objects each folder contains..
@param CachePolicy $cachePolicy         a custom cache policy used for this request only

@return FolderResponse
Fetches a specific Folder .