【问题标题】:Retrieve user information from paypal in php using ios sdk使用 ios sdk 从 php 中的 paypal 检索用户信息
【发布时间】:2016-02-22 12:20:37
【问题描述】:

https://github.com/paypal/PayPal-iOS-SDK/blob/master/docs/profile_sharing_server.md#profile-sharing-server-side-integration

curl 'https://api.paypal.com/v1/oauth2/token' \
    -H "Content-Type: application/x-www-form-urlencoded" \
    -H "Authorization: Basic QWZVa...==" \
    -d 'grant_type=refresh_token&refresh_token=MFYQ...'

什么是

Authorization: Basic QWZVa...== ??
and retur true;

【问题讨论】:

    标签: php paypal


    【解决方案1】:

    授权:基本 xxxx 是 OAuth 2 身份验证令牌。 Basic 是令牌类型,而 xxxx 块是您的访问令牌。这是一种授权用户的方式,将在请求的标头中传递。更多信息在这里:https://developer.paypal.com/docs/api/#authentication--headers

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-07-05
      • 1970-01-01
      • 1970-01-01
      • 2018-08-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多