Google 支付通行证 Postman Oauth2 访问令牌

Google Pay for Passes Postman Oauth2 access token

如何正确配置 Postman 以获得用于测试 Google 支付通行证 REST API 的 Oauth2 访问令牌?

我仔细遵循了 getting started 指南,但是,在设置 Postman Oauth2 对话框后(使用回调url、身份验证 url、访问令牌 url、客户端 ID ,客户秘密和范围)并选择正确的帐户,我在页面中出现此错误:

Error 400: invalid_scope Some requested scopes cannot be shown: [https://www.googleapis.com/auth/wallet_object.issuer] Request details response_type=code client_id=[REMOVED] redirect_uri=https://www.getpostman.com/o/oauth2/callback access_type=online display=page scope=https://www.googleapis.com/auth/wallet_object.issuer

Google API 游乐场出现同样的错误。

您必须根据 https://developers.google.com/identity/protocols/OAuth2ServiceAccount#Overview 使用服务帐户凭据。在那里你会看到使用的库和示例来处理身份验证,这是推荐的方式。