【问题标题】:Issues using google drive api to read the list of files使用 google drive api 读取文件列表的问题
【发布时间】:2013-06-07 05:18:41
【问题描述】:

我正在关注新的 google drive api,要求搜索标题为 https://developers.google.com/drive/quickstart-java 的特定文档

但是,代码似乎在以下几行中显示了用户交互的要求:

 String url = flow.newAuthorizationUrl().setRedirectUri(REDIRECT_URI).build();
    System.out.println("Please open the following URL in your browser then type the authorization code:");
    System.out.println("  " + url);
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String code = br.readLine()

我们之前在我们的 google app engine for java app 中使用 Documents API 来做同样的事情。但看起来谷歌打破了它,因为我们的代码突然停止工作。

那么,如何使用 google drive api 搜索和阅读 google 文本文档?

【问题讨论】:

标签: google-app-engine google-api google-drive-api


【解决方案1】:

服务器端实现似乎是要走的路https://developers.google.com/drive/auth/web-server

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-08
    • 1970-01-01
    • 2021-01-25
    相关资源
    最近更新 更多