当我尝试授予任何文件的访问权限时,我收到500错误.当文件与某人共享时,我不想发送电子邮件.我想停止通知电子邮件.
Insert insert = service.permissions().insert(fileId, newPerm);
insert.setSendNotificationEmails(false);
newPerm = insert.execute();
500 OK
{
"code" : 500,
"errors" : [ {
"domain" : "global",
"message" : "Internal Error. User message: \"An internal error has occurred which prevented the sharing of these item(s): fileame\"",
"reason" : "internalError"
} ],
"message" : "Internal Error. User message: \"An internal error has occurred which prevented the sharing of these item(s): filename\""
}
Run Code Online (Sandbox Code Playgroud)
感谢任何建议.
我将Google SDK设置为使用Google API和Application Default Credentials.对于我的本地计算机,创建了凭证json文件并将其路径设置GOOGLE_APPLICATION_CREDENTIALS为环境变量.这是按预期工作没有问题.
但是,当应用程序部署到Google Cloud VM时,会引发以下错误:
[Google_Service_Exception]
{
"error": {
"code": 403,
"message": "Request had insufficient authentication scopes.",
"errors": [
{
"message": "Request had insufficient authentication scopes.",
"domain": "global",
"reason": "forbidden"
}
],
"status": "PERMISSION_DENIED"
}
}
Run Code Online (Sandbox Code Playgroud)
根据文档,内置服务帐户应与虚拟机实例关联.为了使它工作,我尝试使用凭据json文件,就像我在本地机器上做的那样(工作正常)但它也没有用.
要注意,错误消息是关于范围但不是auth问题.如何使其在Compute Engine VM实例上运行?
给客户端初始化代码:
$client = new Google_Client();
$client->useApplicationDefaultCredentials();
$client->addScope(Google_Service_Pubsub::PUBSUB);
Run Code Online (Sandbox Code Playgroud) google-api google-api-client google-compute-engine google-api-php-client
请注意:这不是重复的,因为我通过创建一个新项目来遵循SO only 经过验证的答案,但它没有用。另外我的情况是来自开发控制台的 chrome 扩展或 chrome 应用程序客户端 ID。
错误:
错误 403:access_denied 开发者未授予您访问此应用的权限。它目前正在测试中,尚未得到 Google 的验证。如果您认为您应该拥有访问权限,请联系开发人员
尽管如此,就像我从所有者帐户访问它的另一篇文章一样。同时,我不能对那个帖子的答案发表评论,因为我的声誉不够高。尽管如此,
我正在尝试通过以下方式从用户检索访问令牌:
清单.json:
{
"manifest_version": 2,
"name": "To be named",
"description": "This extension helps...",
"version": "0.1.0",
"browser_action":{
"default_popup":"popup.html"
},
"permissions": [
"storage",
"identity",
"identity.email",
"http://127.0.0.1:5000/Time"
],
"oauth2":{
"client_id":"10977...esr6.apps.googleusercontent.com",
"scopes":["https://www.googleapis.com/auth/userinfo.profile"]
},
"background": {
"scripts": ["background.js"],
"persistent": false
},
"content_scripts": [{
"matches": ["https://www.blank.org/"],
"js": ["content.js"],
"css": ["styles.css"]
}]
}
Run Code Online (Sandbox Code Playgroud)
背景.js:
chrome.identity.getAuthToken({ 'interactive': true }, function(token) {
if (token){alert('token is ' + token)}
else{alert('token not present')} …Run Code Online (Sandbox Code Playgroud) google-api google-chrome-extension google-api-client google-oauth
我正在尝试使用python从计算OAuth令牌访问谷歌计算的拉取队列
from oauth2client import gce
from apiclient.discovery import build
import httplib2
credentials = gce.AppAssertionCredentials('')
http = httplib2.Http()
http=credentials.authorize(http)
credentials.refresh(http)
service = build('taskqueue', 'v1beta2', http=http)
tq=service.taskqueues()
tq.get(project=MY_APPENGINE_PROJECT, taskqueue=PULL_QUEUE_NAME, getStats=True).execute()
Run Code Online (Sandbox Code Playgroud)
我一直得到HttpError 403"你不能进行这个api调用"
请帮忙,我错过了哪些配置?
谢谢,谢伊
google-app-engine oauth-2.0 google-api-client pull-queue google-compute-engine
我正在尝试使用谷歌服务API获取最后一个已知位置,但在我构建GoogleApiClient后,没有触发任何回调方法.
我的活动看起来像这样:
public class MainActivity extends Activity implements FragmentObserver, SessionSpotListObserver,
ConnectionCallbacks, OnConnectionFailedListener{
//Objects used for the location API
private Location mLastLocation;
private GoogleApiClient mGoogleApiClient;
// Request code to use when launching the resolution activity
private static final int REQUEST_RESOLVE_ERROR = 1001;
// Unique tag for the error dialog fragment
private static final String DIALOG_ERROR = "dialog_error";
// Bool to track whether the app is already resolving an error
private boolean mResolvingError = false;
public static final String STATE_RESOLVING_ERROR = "resolving_state"; …Run Code Online (Sandbox Code Playgroud) 鉴于用户(Google Play的帐户所有者)已使用正确的范围对我的应用程序(Google App Engine的服务帐户)进行了身份验证...
Google API中是否有返回dev_acc用于访问其Play商店开发者帐户的参数的端点?
具体我想检索它以访问https://play.google.com/apps/publish/?dev_acc=DEV_ACC_ID以gs://pubsite_prod_rev_DEV_ACC_ID/
编程方式找到的以下URI
或云存储桶?
或者,列出他/她拥有的所有云存储桶?(包括gs://pubsite_prod_rev_DEV_ACC_ID/水桶)
google-api-client google-cloud-storage google-play google-api-ruby-client google-play-developer-api
我有 python webapp2 应用程序,但是当我运行它时出现此错误
导入错误:没有名为 googleapiclient.discovery 的模块
我在 stackoverflow 中发现的是 ImportError: No module named apiclient.discovery
我试图按照人们所说的去做,但没有奏效
编辑:
点冻结
python google-app-engine google-api-client google-api-python-client
我有一个启用了Google Play开发人员API的Google开发人员控制台程序,并且该项目已链接到Google Play项目。在Google Dev控制台项目中,创建了OAuth客户端ID(网络应用程序)(我是该项目的所有者)。使用“ client_id”和“ client_secret”进行身份验证。尝试在Python中使用google-api-client时,Google Developer API Playground发送请求以列出我们的应用程序的评论,但出现错误:“当前用户没有足够的权限来执行请求的操作。” 详细信息如下:请求:
GET /androidpublisher/v2/applications/<package_name>/reviews
Run Code Online (Sandbox Code Playgroud)
响应:
"error": {
"code": 401,
"message": "The current user has insufficient permissions to perform the requested operation.",
"errors": [
{
"domain": "androidpublisher",
"message": "The current user has insufficient permissions to perform the requested operation.",
"reason": "permissionDenied"
}
]
}
}
Run Code Online (Sandbox Code Playgroud)
我有想念吗?
我在这里张贴这个,因为我不知道在哪里发布这个.今天,我们的应用程序不再返回Google Places API的结果.我们在Google Developers Console上看到了请求,但所有手机都没有返回任何结果.
这个数字今天正在攀升,这些用户中的每一个都停留在我的应用程序的登录/入职流程中.
以下是我在我们正在测试并从用户那里收到的所有iPhone上看到的示例流程.
他们搜索他们的位置.他们可能会或可能不会看到一些自动完成选项:

任何和所有的帮助表示赞赏.有关联系人或我应该做什么的任何提示都很重要.
谷歌是否有服务页面或遇到此问题的其他应用程序?如果是这样,哪些应用?
最近发布的相关SO问题:
我想使用 python google client api 获取项目中所有实例的列表google-api-python-client==1.7.11
我正在尝试使用googleapiclient.discovery.build此方法需要凭据作为参数的方法进行连接
我阅读了文档,但没有获得凭证格式以及它需要的凭证
任何人都可以解释什么凭据以及如何传递以建立 gcp 连接
google-api ×5
android ×1
google-oauth ×1
google-play ×1
ios ×1
oauth-2.0 ×1
pull-queue ×1
python ×1
python-3.x ×1