javascript - Search Console API 的发现文档 URL?

标签 javascript google-api google-search-console google-api-js-client

尝试使用 Google JavaScript Client library查询 Search Console API我不确定要使用的发现文档 URL 是什么

{
  apiKey: '...',
  scope: 'profile email https://www.googleapis.com/auth/webmasters.readonly',
  discoveryDocs: [
    '???',
  ]
  client_id: '...',
}

有人知道吗?

最佳答案

Google Discovery Services API是一个包含所有 Google Discovery API 列表的 API。每个 API 都有一个条目。 Response

您可能正在寻找以下内容:

"discoveryDocs": "https://www.googleapis.com/discovery/v1/apis/customsearch/v1/rest",

Js 客户端库与其他库略有不同,它直接从您尝试访问的 API 的发现文档中读取,而不是预先构建。这就是为什么您需要相关链接。

关于javascript - Search Console API 的发现文档 URL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48493984/

相关文章:

node.js - 谷歌分析 - invalid_grant : Invalid JWT Signature

google-cloud-platform - 如何验证 Google Cloud Endpoints 服务 URL 的所有权?

node.js - Google Search Console API : How do I Solve "User does not have sufficient permission for site"?(当用户有权限时)

javascript - html5 : link to the #id of a div at a certain point on the page

javascript - 如何从JS函数中获取动态值

javascript - Express - 将 JavaScript 数据传递给客户端,无需 View 引擎

seo - "Notice of Suspected Hacking"谷歌站长工具

javascript - 如何在javascript中替换字符串的一部分

javascript - google oauth javascript 跨域

javascript - 谷歌视觉API