优惠券订单及其他脚本

TopAuthTokenRefreshRequest.php 850B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * TOP API: taobao.top.auth.token.refresh request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.07.25
  7. */
  8. class TopAuthTokenRefreshRequest
  9. {
  10. /**
  11. * grantType==refresh_token 时需要
  12. **/
  13. private $refreshToken;
  14. private $apiParas = array();
  15. public function setRefreshToken($refreshToken)
  16. {
  17. $this->refreshToken = $refreshToken;
  18. $this->apiParas["refresh_token"] = $refreshToken;
  19. }
  20. public function getRefreshToken()
  21. {
  22. return $this->refreshToken;
  23. }
  24. public function getApiMethodName()
  25. {
  26. return "taobao.top.auth.token.refresh";
  27. }
  28. public function getApiParas()
  29. {
  30. return $this->apiParas;
  31. }
  32. public function check()
  33. {
  34. RequestCheckUtil::checkNotNull($this->refreshToken,"refreshToken");
  35. }
  36. public function putOtherTextParam($key, $value) {
  37. $this->apiParas[$key] = $value;
  38. $this->$key = $value;
  39. }
  40. }