我正在尝试使用Google API Node.js客户端检索登录用户的名称,使用的是OAuth2 API。
按照用法示例,我设法进行了登录,但我找不到获取配置文件信息的方法。
我没有使用People API或Plus API,因为据我所知,OAuth2包含,这应该足以完成任务。
我已经看到了一些类似的问题,并尝试了这个问题的解决方案,但它不起作用,可能它太旧了(?)
看看其他API,比如Google Sheets,可以像这样调用它们的函数:
var google = require('googleapis');
var sheets = google.sheets('
以下是错误。
WARNING: Application name is not set. Call Builder#setApplicationName.
Exception in thread "main" java.io.FileNotFoundException: document.txt (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Fil
我试着通过http从google sheet上读取数据。我使用v4 google spreadsheet api:
https://sheets.googleapis.com/v4/spreadsheets/1MZJEOzkzy5iJ9HPy2GU-Ky3vdaIzGGDQH8BMt4n3OGI/values/Sheet1!A1:D5
我得到了:
{
"error": {
"code": 403,
"message": "The request cannot be identified with a client pr
6个月前,我编写了一个小工具,可以读取Google工作表,并根据这些数据创建一个条目列表(用于Videogame)。在此期间,我安装了一个全新的windows版本,现在我想导入这个工作区来做一些调整。问题是,我不能让这个程序再次工作。 在Build.gradle中存在以下错误: "Could not run phased build action using connection to Gradle installation 'C:\Users\nikbr\Documents\Liga\gradle-7.0'.
Build file 'C:\Users\nik
我试图通过使用这个库:从Google获取数据,并且我遵循本教程来配置API的设置和没有任何错误,但是一旦我尝试实现它们在上面的链接中提供的任何示例,它将向我展示一些错误:
示例1(关于它们的链接):
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use PulkitJalan\Google\Facades\Google;
use Revolution\Google\Sheets\Sheets;
class SpreadController extends Controller
{
fun
嗨,我是google sheets api的新手。我试图使用google工作表中的数据创建一个图表。当我尝试使用batchUpdate方法将聊天添加到工作表时,弹出错误。
"error": {
"code": 400,
"message": "Invalid requests[0].addChart: One of EmbeddedObjectPosition.overlayPosition or EmbeddedObjectPosition.sheetId must be set",
"erro
在接受输入并更新电子表格中的值的表单中。它以前运行得很好,但突然停止处理以下错误消息:
Fatal error: Uncaught exception 'Google_Service_Exception' with message '{ "error": { "code": 403, "message": "The caller does not have permission", "errors": [ { "message": "The caller does n
我想知道如何抑制Google flow输出,使我的输出更干净。
下面是Quickstart.py代码:
creds =None
if os.path.exists('token.pickle'):
first_time_login = False
with open('token.pickle', 'rb') as token:
creds = pickle.load(token)
# If there are no (valid) credentials ava
我设置了一个小脚本,通过Google Drive API将Google工作表的第一个选项卡导出为csv。我只需执行脚本一次,它就能正常工作。在执行过程中,我得到了一个URL,让我可以在线进行身份验证,并给我一个代码。这些代码存储在一个token.yaml文件中。然后脚本成功导出我的工作表。
当我第二次执行脚本时,我得到了错误
dailyLimitExceededUnreg: Daily Limit for Unauthenticated Use Exceeded.
Continued use requires signup. (Google::Apis::ClientError)
当我删除在第
我的目标是通过接收html表单数据的.php文件写入google sheets。
到目前为止~在这里完成了PHP快速入门:成功完成,并能够使用他们的示例对工作表进行读/写。
接下来,我使用示例代码附加了一个工作表,该工作表位于:
但它似乎遗漏了一段重要的代码。见下文。
Linux服务器,PHP5。
<?php
/*
* BEFORE RUNNING:
* ---------------
* 1. If not already done, enable the Google Sheets API
* and check the quota for your project a
<?php
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req
虽然有几篇有用的文章介绍了如何使用OAuth客户端in来生成读写Google Sheets所需的凭据,但我一直无法理解如何在这样的上下文中使用替代的API键(令牌)。
我盲目地尝试简单地将令牌字符串传递给gspread.authorize(TOKEN),但是收到一个错误:AttributeError: 'str' object has no attribute 'access_token',这并不奇怪
提前感谢您的任何建议
嗨,我刚刚开始学习PHP,我正在尝试使用Google sheets API。
我认为我遵循了他们的指示,我可以很好地调用和编辑工作表数据,但只能是公共访问。
当我将访问状态更改为private或Group时,遇到以下消息。
PHP Fatal error: Uncaught exception 'Google_Service_Exception' with message '{
"error": {
"code": 403,
"message": "The caller does not ha