OauthTokenModel.php 937 B

1234567891011121314151617
  1. <?php
  2. namespace common\expand\alipay\auth\model;
  3. use common\expand\alipay\AlipayModel;
  4. /**
  5. * @desc 换取授权访问令牌
  6. * @url https://opendocs.alipay.com/open/02xtla
  7. * @property string $grant_type 授权方式。支持:1.authorization_code,表示换取使用用户授权码code换取授权令牌access_token。2.refresh_token,表示使用refresh_token刷新获取新授权令牌。
  8. * @property string $code 授权码,用户对应用授权后得到。本参数在 grant_type 为 authorization_code 时必填;为 refresh_token 时不填。
  9. * @property string $refresh_token 刷新令牌,上次换取访问令牌时得到。本参数在 grant_type 为 authorization_code 时不填;为 refresh_token 时必填,且该值来源于此接口的返回值 app_refresh_token(即至少需要通过 grant_type=authorization_code 调用此接口一次才能获取)。
  10. */
  11. class OauthTokenModel extends AlipayModel
  12. {
  13. }