【发布时间】:2021-07-20 18:05:01
【问题描述】:
我正在尝试为我的业务获取谷歌评论,但在实施它时遇到了困难。有人可以分享如何使用 JavaScript/Postman 使用谷歌业务 API 获取最新/前 5 条评论吗?我试图这样做:
获取:
https://accounts.google.com/o/oauth2/auth?client_id=MY_CLIENT_ID.apps.googleusercontent.com&client_secret=MY_CLIENT_SECRET&scope=https://www.googleapis.com/auth/business.manage&response_type=token&redirect_uri=https ://developers.google.com/oauthplayground
但它不起作用。
正在尝试在 Google oauth playground 上进行测试
填充:OAuth 流程:客户端 使用您自己的 OAuth 凭据:此处为我的客户 ID
第 1 步:
授权 API:https://www.googleapis.com/auth/plus.business.manage 但我在这里得到:
错误 400:redirect_uri_mismatch 请求中的重定向 URI https://developers.google.com/oauthplayground 与授权给 OAuth 客户端的重定向 URI 不匹配。要更新授权的重定向 URI,请访问:https://console.developers.google.com/apis/credentials/oauthclient/938304287177-nkvm5mqk3f5uq9lt9j2srqlgd0bjihip.apps.googleusercontent.com?project=938304287177
【问题讨论】:
标签: javascript angular google-api google-oauth google-developers-console