public function b2_download_file_by_id($download_url, $file_id, $auth_token = NULL)
        {
            $call_url     = $download_url."/b2api/v1/b2_download_file_by_id?fileId=".$file_id;
            $auth_token   = $auth_token; // Obtained from the b2_authorize_account call
            $download_url = $download_url; // Obtained from the b2_authorize_account call
            $file_id      = $file_id; // The ID 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_id($download_url, $file_id, $auth_token = NULL)
        {
            $call_url     = $download_url."/b2api/v1/b2_download_file_by_id?fileId=".$file_id;
            $auth_token   = $auth_token; // Obtained from the b2_authorize_account call
            $download_url = $download_url; // Obtained from the b2_authorize_account call
            $file_id      = $file_id; // The ID 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_id ( $ download_url , $ file_id , $ auth_token = NULL ) { $ call_url = $ download_url . "/b2api/v1/b2_download_file_by_id?fileId=" . $ file_id ; $ auth_token = $ auth_token ; // Obtained from the b2_authorize_account call $ download_url = $ download_url ; // Obtained from the b2_authorize_account call $ file_id = $ file_id ; // The ID 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 ID
Download file by ID