我正在用flutter创建一个待办事项列表应用程序,我希望我的用户能够在google drive上备份他们的任务。这是我使用的代码:
// Create the file we want to upload.
ga.File fileToUpload = ga.File();
var file = await _localFile;
fileToUpload.parents = ["appDataFolder"];
fileToUpload.name = path.basename(file.absolute.path);
// Create a new back-up fi
我无法列出drive.appdata作用域中的文件。我收到这个错误:The granted scopes do not give access to all of the requested spaces.
list request by drive.appdata scope。
代码:
response = self.service.files().list(q="name = 'test.txt'").execute()
我试图在谷歌驱动器应用程序的特定文件夹中创建文件。我在中创建了OAuth 2.0客户端I,并启用了驱动器api,并在OAuth同意屏幕中添加了作用域。App是谷歌账户中的成功标志。它使用下面的代码在appDataFolder中创建文件,但在“我的驱动器”部分创建文件。文件是在我的驱动器部分创建的,但是文件id也是空的。
文件是使用AsyncTask创建的。
class BackUpActivity : AppCompatActivity() {
private lateinit var googleDriveFile: File
private var mediaContent: Fi
我试图在Google文件中存储一个包含配置信息的json对象。我目前正在用JS编写应用程序,该应用程序运行在客户端上。使用Google,我目前可以检查appdata文件夹中的文件。,如果找不到配置,我如何生成新文件并将其存储在appdata文件夹中?
var request = gapi.client.drive.files.list({
'q': '\'appdata\' in parents'
});
request.execute(function(resp) {
for (i in resp.items) {
if(resp.
我有一个从Google复制的小脚本,它应该在google驱动器上将一个文件上传到我的appDataFolder上,当它第一次运行时,它要求进行身份验证,并授予它权限。
import os.path
from googleapiclient.http import MediaFileUpload
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
fr
我是一个node.js开发人员,已经创建了一些使用OAuthClient 2.0访问谷歌驱动器和谷歌工作表的应用程序接口,但一段时间后,它给出了错误,即
User Rate Limit Exceeded. Rate of requests for user exceed configured project quota. You may consider re-evaluating expected per-user traffic to the API and adjust project quota limits accordingly. You may monitor aggregate
from googleapiclient.http import MediaFileUpload
from Google import Create_Service
CLIENT_SECRET_FILE = 'client-secret.json'
API_NAME ='drive'
API_VERSION = 'v3'
SCOPES = ['https://www.googleapis.com/auth/drive.file']
service = Create_Service(CLIENT_SECRET_FILE, API