简体   繁体   English

Android Google Drive API上传到我的公共文件夹

[英]Android Google Drive API upload to my public folder

I'm developing an app which will allow users to upload photos to my Google Drive public folder. 我正在开发一个应用程序,允许用户将照片上传到我的Google云端硬盘公用文件夹。 Currently, from online tips, i managed to do the upload process. 目前,通过在线提示,我设法完成了上传过程。 However, each users can only upload the photo to their own Drive. 但是,每个用户只能将照片上传到自己的云端硬盘。 I've been searching the net for the tips, some are suggesting to use REST API but I don't know how to implement it. 我一直在网上搜索提示,有些人建议使用REST API,但我不知道如何实现它。 I've been reading this guide and still don't know how to do it on android. 我一直在阅读指南,但仍然不知道如何在android上做到这一点。 Can someone point show a simple way of uploading a file to public folder using REST API on android. 有人指出可以使用Android上的REST API将文件上传到公用文件夹的简单方法。

Since you already managed to upload a file , the only problem is how to upload a file to public folder on Android. 由于您已设法上传文件 ,唯一的问题是如何将文件上传到Android上的公用文件夹。 I have read in this SO that Drive API for Android only supports authorizing the current user. 我在这读SO该驱动器API为Android只支持授权当前用户。 You can file a feature request for this. 您可以为此提交功能请求 This workaround might also help: However if you use the Google APIs Java client instead to access the Drive API you can store credentials for your account with the application and use those for all users of your app. 此解决方法也可能有所帮助: 但是,如果您使用Google API Java客户端来访问Drive API,则可以使用该应用程序存储帐户的凭据,并将其用于应用的所有用户。 Read more about authorization and the Java client here . 在此处阅读有关授权和Java客户端的更多信息。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Google Drive API访问我自己的“公用”文件夹android / iOS - Using google drive API to access my own “public” folder android/iOS Google Drive Android API如何将音频文件上传到我的驱动器? 如何同步驱动器文件? - Google Drive Android API how to upload a audio file to my drive ? How to sync drive files? 将文件上传到现有的Google云端硬盘文件夹-Android - Upload file to existing Google Drive Folder - Android 适用于Android的云端硬盘API:如何列出Google云端硬盘文件夹中的每个条目(以及不是由我的应用创建的条目) - Drive API for Android: how to list every entry in Google Drive folder (also those not created by my app) 在Android中以编程方式使用Google Drive API将图像上传到Google Drive - Upload image to a google drive using google drive api programatically in android Google Drive Android API - 检查文件夹是否存在 - Google Drive Android API - Check if folder exists Google Drive API Android-启动活动文件夹 - Google Drive API Android - Start Activity Folder 如何将图像从我的Android应用程序上传到Google驱动器上的特定文件夹 - how to upload an image from my android app to a specific folder on google drive 无需身份验证即可从 Android 应用访问公共 Google Drive 文件夹 - Accessing public Google Drive folder from Android app without authenticating 将文件上传到应用程序文件夹Google Drive v3 REST API - Upload file to application folder google drive v3 REST API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM