public function b2ListFileNames($URL, $token, $bucketId, $startFileName = null, $maxFileCount = 100, $prefix = null, $delimiter = null)
    {
        if ($maxFileCount > 1000) {
            throw new B2Exception('The maximum allowed is 1000');
        }
        $curl = $this->prepareCurl();
        $browser = new Browser($curl);
        $payload = array(
            'bucketId' => $bucketId,
            'maxFileCount' => $maxFileCount,
        );
        if (!is_null($startFileName)) {
            $payload['startFileName'] = $startFileName;
        }
        if(!is_null($prefix)){
            $payload["prefix"] = $prefix;
        }
        if(!is_null($delimiter)){
            $payload["delimiter"] = $delimiter;
        }
        $response = $browser->post($URL.'/b2api/v1/b2_list_file_names', $this->getHeaders($token), json_encode($payload));

        return new B2Response($response);
    }