original_string: public function download_file($id, $path) {
          $url = self::API."/${id}/content";
          // Microsoft live redirects to the real download location..
          $this->setopt(array('CURLOPT_FOLLOWLOCATION' => true, 'CURLOPT_MAXREDIRS' => 3));
          $content = $this->get($url);
          file_put_contents($path, $content);
          return array('path'=>$path, 'url'=>$url);
      }
code: public function download_file($id, $path) {
          $url = self::API."/${id}/content";
          // Microsoft live redirects to the real download location..
          $this->setopt(array('CURLOPT_FOLLOWLOCATION' => true, 'CURLOPT_MAXREDIRS' => 3));
          $content = $this->get($url);
          file_put_contents($path, $content);
          return array('path'=>$path, 'url'=>$url);
      }
code_tokens: public function download_file ( $ id , $ path ) { $ url = self :: API . "/${id}/content" ; // Microsoft live redirects to the real download location.. $ this -> setopt ( array ( 'CURLOPT_FOLLOWLOCATION' => true , 'CURLOPT_MAXREDIRS' => 3 ) ) ; $ content = $ this -> get ( $ url ) ; file_put_contents ( $ path , $ content ) ; return array ( 'path' => $ path , 'url' => $ url ) ; }
docstring: Downloads a file to a  file from skydrive using authenticated request
  
  @param string $id id of file
  @param string $path path to save file to
  @return array stucture for repository download_file
docstring_tokens: Downloads a file to a file from skydrive using authenticated request