尝试使用 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/