2015-08-25 169 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. 
    }); 
相關問題