要求是将用户的Gmail邮件同步到我们的CRM中.适当的系统基于Google Pub/Sub,用于监视用户的收件箱以进行任何更改,并将通知发送到我们的HTTPs端点.有关此内容的更多信息,请访问Gmail cloud pub/sub.
根据上述程序,我们将改变历史.然后我只对新消息感兴趣,因此根据本指南首选history.getMessagesAdded .我们现在面临的问题是没有在messagesAdded下捕获线程的第一个邮件,所有后续消息都通过我们的系统传递.
注意:对于第一封邮件,我们会从Google推送.但是当我们尝试添加消息时,它变得空洞.是否有任何特殊需要为线程的第一个邮件做或我错过了什么.
java gmail gmail-api google-cloud-pubsub google-console-developer
我正在测试示例代码。它一直有效,但突然间我得到:
{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceededUnreg",
    "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
    "extendedHelp": "https://code.google.com/apis/console"
   }
  ],
  "code": 403,
  "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
 }
}
同样,它一直有效。什么都没有改变。我知道设置控制台开发的东西和 blablabla。我想知道这个问题的原因。
这是我的脚本:
  gapi.client.init({
        'apiKey': 'xxxxxxxx',
        'discoveryDocs': ["https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest"],
        'clientId': 'xxxx.apps.googleusercontent.com',
        'scope': 'https://www.googleapis.com/auth/calendar.readonly https://www.googleapis.com/auth/calendar',
      }).then(function() {
            gapi.client.calendar.events.list({
              'calendarId': 'primary',
              'timeMin': (new Date()).toISOString(),
              'showDeleted': false,
              'singleEvents': true,
              'maxResults': 10,
              'orderBy': 'startTime' //from input
            }).then(function(response) {
             var events = response.result.items; …我正在Google Developer Console中尝试推送通知.现在Google开发者控制台已完全更新.我以前做过:
注册我们的应用谷歌的控制台.
转到API,启用 Google Cloud Messaging for Android 
转到凭据,单击"创建新密钥".然后单击"服务器密钥"
添加示例:000.000.0.0,然后创建API密钥(此过程用于白名单列出您的URL)
在配置文件中使用生成的API KEY
我们将从URL获取发件人ID,将其粘贴到GCMConstant.java文件中
在创建项目后的新Google控制台UI中,我没有找到" Credintial "," Create New key "
任何人都可以给我一个关于新谷歌开发者控制台配置的想法吗?
android push-notification google-cloud-messaging google-console-developer
我正在将我的项目从 Digits 迁移到 Firebase。在这个过程中,我需要在 Firebase 中创建一个应用程序并添加发布版本的 SHA-1。当我尝试添加 SHA-1 时,出现以下错误:
尝试修改 Android 证书指纹时出错。请稍后再试。
在这里找到了以下两个类似的问题。两者都说 Firebase 的 Google API 项目上应该有一个已经存在的具有相同 SHA-1 的应用程序。我没有任何其他具有相同 SHA-1 的应用程序。
android证书指纹sha1可以在firebase和Google Place API中使用吗?
需要帮助来解决这个问题。
android firebase google-console-developer firebase-authentication
我有一个用户的谷歌 ID,我想在我的应用程序中显示他的谷歌个人资料照片。在我的swift代码中,我尝试使用必要的信息获取 json(基于此答案/sf/answers/1576829131/)。这是我的代码:
 Alamofire.request(.GET, "https://www.googleapis.com/plus/v1/people/10263...4252?key=AI...Oo")
            .responseJSON { response in
                print(response)
                switch response.result {
                case .Success:
                    dispatch_async(dispatch_get_main_queue(),{
                        if let jsonData = response.result.value as? [[String: AnyObject]] {
                            print(jsonData)
                        }
                    })
                case .Failure(let error):
                    print("SWITCH ERROR")
                    print(error)
                }
        }
但作为回应,我收到此错误:
    error =     {
        code = 403;
        errors =         (
                        {
                domain = usageLimits;
                extendedHelp = "https://console.developers.google.com";
                message = "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please …将Google Project导入Firebase是否会干扰或破坏使用相关API的任何遗留应用程序的运行?例如,我们目前使用Youtube API允许用户将视频上传到网站.迁移后会受到影响吗?
android firebase google-play-services google-console-developer firebase-console
我已经构建了一个谷歌应用程序脚本网络应用程序。对于 Google Drive 相关功能,应用程序需要auth/drive.install(与 Drive UI 集成)和auth/drive.file(在相关文件属性中存储与文件关联的一些数据)范围。其他的范围是auth/urlshortener,auth/userinfo.email和auth/userinfo.profile。据我了解,出于身份验证目的,需要后两者。
上述范围在应用程序中的 oauth dance 中指定。但是,在应用安装时,会向用户显示以下范围:
auth/drive scope)auth/urlshortener)auth/script_*范围相对应的这与脚本属性的范围相关。
5 OAuth Scopes required by the script:
https: //www.googleapis.com/auth/drive
https: //www.googleapis.com/auth/script.external_request 
https: //www.googleapis.com/auth/script.scriptapp 
https: //www.googleapis.com/auth/script.storage 
https: //www.googleapis.com/auth/urlshortener
显然,auth/drive并且auth/urlshortner是由于使用高级 Google 服务而添加的,这些服务在 GAS IDE(资源 > 高级 Google 服务)和开发人员控制台中都已打开。
GAS IDE 不允许指定任何比 eg 更窄的范围auth/drive。出于某种原因,开发人员控制台中的 Google Apps Marketplace SDK 配置不允许添加任何特定范围。实际上,它允许添加但不保存任何内容。 …
我在我的应用程序中使用 google drive api,当我使用 .apk 文件安装它时,它在调试和发布版本上都可以正常工作。
但是,如果我在 Playstore 上发布相同版本的 .apk,然后从那里下载它,我将无法登录 Google。
关于这个问题,我所能找到的只是人们没有使用发布密钥库在 Google 的开发人员控制台上生成凭据,而我的情况并非如此。
android google-drive-api android-keystore google-console-developer
有没有一种简单的方法来获取gcloud container clusters create ...现有集群的命令详细信息?(...可用于创建完全相同的集群的命令)
我团队中的某人通过 UI 在 GKE 上创建了一个集群,其中包含特定区域和机器类型详细信息,以及一些我不记得的其他自定义设置。我将删除该集群,因为它是为了测试。我们可能需要重新创建它,为此,我希望记录gcloud可用于创建相同集群的命令,而不是通过 UI 运行。
我在 GCP UI 上找不到任何可以帮助解决此问题的内容。我们可以通过文档(https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-cluster)构建可能构建相同集群的cmd,但想检查是否有更好的方法。
google-cloud-platform gcloud google-kubernetes-engine google-console-developer
Service Account Credentials 我在这里创建并得到了 json key service.json。
然后我尝试:
from google.oauth2 import service_account
SCOPES = ['https://www.googleapis.com/auth/spreadsheets']
credentials = service_account.Credentials.from_service_account_file(
        'service.json', scopes=SCOPES)
drive = build('drive', 'v3', credentials=credentials)
file_metadata = {
    'name': 'sampleName',
    'parents': ['#### folderId ###'],
    'mimeType': 'application/vnd.google-apps.spreadsheet',
}
res = drive.files().create(body=file_metadata).execute()
print(res)
有错误:
<HttpError 403 when requesting https://www.googleapis.com/drive/v3/files?alt=json returned "Insufficient Permission: Request had insufficient authentication scopes.">
{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceededUnreg",
    "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
    "extendedHelp": "https://code.google.com/apis/console" …python google-authentication google-drive-api google-console-developer google-sheets-api
根据此处的文档
我使用通配符添加了http限制,如下所示:
这应该涵盖所有子域的所有路径,但是RefererNotAllowedMapError当我尝试使用时会收到错误消息https://www.dev.mydomain.com/#/
我什至尝试显式添加https://www.dev.mydomain.com/#/,但出现相同的错误。
我完全迷路了,不知道该怎么办。显然,其他人正在使用Google Maps API,并没有完全不受限制,因此必须有一种方法来做到这一点。
google-maps google-api google-maps-api-3 google-console-developer
android ×4
google-api ×3
firebase ×2
gcloud ×1
gmail ×1
gmail-api ×1
google-maps ×1
ios ×1
java ×1
javascript ×1
python ×1
swift ×1