【问题标题】:Get user information in PayPal sandbox environment在 PayPal 沙盒环境中获取用户信息
【发布时间】:2016-08-03 20:00:31
【问题描述】:

这与 PayPal 在沙盒环境中获取用户信息的 API 有关 - https://developer.paypal.com/docs/api/#get-user-information

curl -sk https://api.sandbox.paypal.com/v1/identity/openidconnect/userinfo/?schema=openid \ -H "Content-Type:application/json" \ -H "Authorization: Bearer <valid_access_token>"

我在 json 响应中获得了一个 user_id,但其他用户属性(例如 name、given_name、family_name)都被删除了。像这样

{ "user_id": "https://www.paypal.com/webapps/auth/identity/user/eyeTNlAeNRNDMpHBW6OCUyA-d7hsvZjChNONOiujnhU" }

我怎样才能获得这些属性的其余部分?

【问题讨论】:

  • 我面临同样的问题。有什么解决办法吗?

标签: json curl paypal paypal-sandbox


【解决方案1】:

如果您想获取这些信息,您需要在 developer.paypal.com 网站上的 REST APP 中选择这些属性。

【讨论】:

  • 我选择了我的 Rest APP 中的所有属性,但我面临同样的问题。我无法从访问令牌中获取电子邮件 ID。
猜你喜欢
  • 2014-09-12
  • 2013-05-03
  • 2021-07-31
  • 1970-01-01
  • 2012-05-22
  • 1970-01-01
  • 2013-04-03
  • 2013-08-14
  • 2017-03-13
相关资源
最近更新 更多