Google My Business API - 响应“未找到方法”404

时间:2018-01-19 23:39:02

标签: oauth2-playground

只需访问Google我的商家API,并按照此处的说明操作:https://developers.google.com/my-business/content/get-started

项目信息

PROJECT_ID = twocents-评论

PROJECT_NUMBER = 705754565185

我正在尝试使用OAuth 2.0 Playground将我的第一个Google My Business API请求发送到https://mybusiness.googleapis.com/v3/accounts,这是我得到的回复(下方)。

响应

GET /v3/accounts HTTP/1.1
Host: mybusiness.googleapis.com
Content-length: 0
Authorization: Bearer [**** REDACTED ****]
HTTP/1.1 404 Not Found
Content-length: 100
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
X-goog-trace-id: 6748d818415fd6349e9763a87acb707e
Transfer-encoding: chunked
Vary: Origin, X-Origin, Referer
Server: ESF
-content-encoding: gzip
Cache-control: private
Date: Fri, 19 Jan 2018 23:28:51 GMT
X-frame-options: SAMEORIGIN
Alt-svc: hq=":443"; ma=2592000; quic=51303431; quic=51303339; quic=51303338; quic=51303337; quic=51303335,quic=":443"; ma=2592000; v="41,39,38,37,35"
Content-type: application/json; charset=UTF-8
{
  "error": {
    "status": "NOT_FOUND", 
    "message": "Method not found.", 
    "code": 404
  }
}

有什么建议吗?

1 个答案:

答案 0 :(得分:2)

Google尚未完成设置过程。我需要做的就是让API稍等一会儿。