2015-08-25 146 views

回答

1

how to programmatically download a public Google Drive file?

你不需要任何谷歌SDK,如果你知道的链接和文件是公开的。只需使用标准的HTTP GET方法来下载文件即可。

与AngularJS示例:

$http.get('/doc_url'). 
    then(function(response) { 
    // this callback will be called asynchronously 
    // when the response is available 
    }, function(response) { 
    // called asynchronously if an error occurs 
    // or server returns response with an error status. 
    }); 
相关问题