public function b2_download_file_by_name($download_url, $bucket_name, $file_name, $auth_token = NULL)
        {
            $call_url     = $download_url."/file/".$bucket_name."/".$file_name;
            $auth_token   = $auth_token; // Obtained from the b2_authorize_account call
            $download_url = $download_url; // Obtained from the b2_authorize_account call
            $bucket_name  = $bucket_name; // The name of the bucket you wish to download from
            $file_name    = $file_name; // The name of the file you wish to download

            // Add headers
            $headers = array(
                "Authorization: {$auth_token}"
            );

            $result = b2_call($call_url, $headers);
            return $result; // Return the result
        }
public function b2_download_file_by_name($download_url, $bucket_name, $file_name, $auth_token = NULL)
        {
            $call_url     = $download_url."/file/".$bucket_name."/".$file_name;
            $auth_token   = $auth_token; // Obtained from the b2_authorize_account call
            $download_url = $download_url; // Obtained from the b2_authorize_account call
            $bucket_name  = $bucket_name; // The name of the bucket you wish to download from
            $file_name    = $file_name; // The name of the file you wish to download

            // Add headers
            $headers = array(
                "Authorization: {$auth_token}"
            );

            $result = b2_call($call_url, $headers);
            return $result; // Return the result
        }
public function b2_download_file_by_name ( $ download_url , $ bucket_name , $ file_name , $ auth_token = NULL ) { $ call_url = $ download_url . "/file/" . $ bucket_name . "/" . $ file_name ; $ auth_token = $ auth_token ; // Obtained from the b2_authorize_account call $ download_url = $ download_url ; // Obtained from the b2_authorize_account call $ bucket_name = $ bucket_name ; // The name of the bucket you wish to download from $ file_name = $ file_name ; // The name of the file you wish to download // Add headers $ headers = array ( "Authorization: {$auth_token}" ) ; $ result = b2_call ( $ call_url , $ headers ) ; return $ result ; // Return the result }
Download file by name
Download file by name