问题:如果您在Google地理标记中启用工具提示,则无法更改工具提示标题,这是您传递给Google图表绘制方法的第一列.
javascript google-maps google-api tooltip google-visualization
我正在尝试学习如何使用google api更改日历上的活动.服务器是将基于数据库中的信息更新日历的用户.实际上不需要用户交互.
问题是我在获取/使用刷新令牌时遇到问题.我单击添加到页面的"连接我"链接,它给我一个错误:
Fatal error: Uncaught exception 'Google_Auth_Exception' with message 'Error refreshing the OAuth2 token, message: '{ "error" : "invalid_request", "error_description" : "Missing required parameter: refresh_token" }
我已经尝试过这种方式设置刷新令牌,以及类似的方法,但它们似乎都不起作用,这让我觉得我正在错误地实现它们.
当我打印出$_SESSION['access_token']变量时,它显示没有refresh_token:
{"access_token":"token","token_type":"Bearer","expires_in":3599,"created":1417534503}
这是我用来授权没有refresh_token部分的'用户'的功能(基于一个例子):
function googleAuth(){
$client_id = 'myclientid';
$client_secret = 'myclientsecret';
$redirect_uri = 'redirecturi';
$client = new Google_Client();
$client->setAccessType('offline');
$client->setClientId($client_id);
$client->setClientSecret($client_secret);
$client->setRedirectUri($redirect_uri);
$client->setScopes('https://www.googleapis.com/auth/calendar');
/************************************************
If we're logging out we just need to clear our
local access token in this case
************************************************/
if (isset($_REQUEST['logout'])) { …Run Code Online (Sandbox Code Playgroud) 我正在使用我的应用程序的Javascript客户端API,我试图从主要收件箱中获取未读邮件.
如果我在请求标签时使用INBOX和UNREAD名称,我会从所有标签中获取所有未读邮件.
没有其他标签类型名称可行,我已经在API资源管理器中进行了实验,我似乎无法弄清楚如何管理它.
我错过了什么或不可能吗?
我们将API帐户从免费更新为付费,但不会让我们增加配额.我的理解是,如果我转到API&auth - > API - >选择API - >配额,应该有一个选项,但没有.
有人可以帮忙吗?


在Power Query中,我可以使用Web.Contents函数从Web下载数据,但是有一个api要求该请求包含以下格式的多部分/表单数据
"__rdxml"=<*Some data*>
那么如何使用Web.Contents函数来做到这一点呢?
我尝试过
...
PostContent = "__rdxml=<*Some data*>",
Source Web.Contents(url,Content=Text.ToBinary(PostContent))
...
Run Code Online (Sandbox Code Playgroud)
但是服务器响应为400 Bad Request。
我检查了Fiddler的原始请求,似乎请求未发送content-type=multipart/form-data标头。
我尝试使用手动添加content-type标头content-type=multipart/form-data,但这也不起作用。400 Bad Request响应相同。
任何的想法?
excel google-api google-analytics-api google-adwords powerquery
我是新的Android应用开发者,我还在尝试不同的谷歌云API.谷歌为云存储n数据存储提供免费配额,但为什么他们强迫我们为云存储启用免费配额?为什么我必须拥有一个我永远不会支付的帐户,因为我只是尝试使用免费配额的API.我没有任何国际借记卡/信用卡,这里不容易拿到一个,如何尝试云存储(创建/编辑,删除桶/对象)?我可以尝试测试应用程序的公共存储桶或对象吗?
我创建了一个django项目,使用django-social-auth登录谷歌.
我按照文档在Google开发者控制台中使用"OAuth 2.0"创建了一个应用程序并添加了API
Gmail API, Google+ API, Google+ Domains API and Google+ Hangouts API
Run Code Online (Sandbox Code Playgroud)
在凭证中,我已将AUTHORIZED REDIRECT URIS设置为我的生产服务器URL"mysite.com".
我使用"CLIENT ID"和"CLIENT SECRET"配置了django设置.此设置在我的本地服务器上完美运行,用户已创建,并且电子邮件与用户关联.
但是当我搬到生产服务器时,我得到了错误
"400. That’s an error. OpenID auth request contains an unregistered domain: mysite.com".
Run Code Online (Sandbox Code Playgroud)
有没有其他人面临类似的问题?
我总是得到400 - 错误请求 - invalidArgument
400 OK
- Hide headers -
cache-control: private, max-age=0
content-encoding: gzip
content-length: 133
content-type: application/json; charset=UTF-8
date: Tue, 07 Apr 2015 11:11:32 GMT
expires: Tue, 07 Apr 2015 11:11:32 GMT
server: GSE
vary: Origin, X-Origin
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalidArgument",
"message": "Bad Request"
}
],
"code": 400,
"message": "Bad Request"
}
}
Run Code Online (Sandbox Code Playgroud)
我没有使用任何参数,在文档中它们都是可选的
以下所有情况都会出现此错误
有人能帮助我吗?我做错了什么?您可以在文档页面中尝试:https://developers.google.com/google-apps/activity/v1/reference/activities/list?hl = es
谢谢
我正在尝试使用API在我的客户网站上嵌入直播活动视频.我正在尝试使用youtube.liveBroadcasts.list检索公共直播视频列表.
它正在使用API Explorer查询构建器.
当我将请求复制到浏览器时,我收到login required错误.
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Login Required",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Login Required"
}
}
Run Code Online (Sandbox Code Playgroud)
问题是:
google-api youtube-api google-authentication google-oauth youtube-livestreaming-api
该代码在SDK中运行得很好,但在Google AppEngine上,它会爆炸:
File "./oauth2client/util.py", line 137, in positional_wrapper
File "./googleapiclient/discovery.py", line 197, in build
File "./oauth2client/util.py", line 137, in positional_wrapper
File "./oauth2client/client.py", line 563, in new_request
File "./httplib2/__init__.py", line 1608, in request
File "./httplib2/__init__.py", line 1350, in _request
File "./httplib2/__init__.py", line 1306, in _conn_request
File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/python_std_lib/httplib.py", line 1033, in getresponse
raise ResponseNotReady()
ResponseNotReady
Run Code Online (Sandbox Code Playgroud)
仅当GAE_USE_SOCKETS_HTTPLIB打开时才会发生这种情况.
google-api ×10
google-oauth ×2
api ×1
django ×1
excel ×1
gmail ×1
gmail-api ×1
google-inbox ×1
google-maps ×1
javascript ×1
oauth-2.0 ×1
php ×1
powerquery ×1
python ×1
tooltip ×1
youtube-api ×1