You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
850 B
PHTML
49 lines
850 B
PHTML
2 years ago
|
<?php
|
||
|
/**
|
||
|
* TOP API: taobao.top.auth.token.refresh request
|
||
|
*
|
||
|
* @author auto create
|
||
|
* @since 1.0, 2015.08.20
|
||
|
*/
|
||
|
class TopAuthTokenRefreshRequest
|
||
|
{
|
||
|
/**
|
||
|
* grantType==refresh_token 时需要
|
||
|
**/
|
||
|
private $refreshToken;
|
||
|
|
||
|
private $apiParas = array();
|
||
|
|
||
|
public function setRefreshToken($refreshToken)
|
||
|
{
|
||
|
$this->refreshToken = $refreshToken;
|
||
|
$this->apiParas["refresh_token"] = $refreshToken;
|
||
|
}
|
||
|
|
||
|
public function getRefreshToken()
|
||
|
{
|
||
|
return $this->refreshToken;
|
||
|
}
|
||
|
|
||
|
public function getApiMethodName()
|
||
|
{
|
||
|
return "taobao.top.auth.token.refresh";
|
||
|
}
|
||
|
|
||
|
public function getApiParas()
|
||
|
{
|
||
|
return $this->apiParas;
|
||
|
}
|
||
|
|
||
|
public function check()
|
||
|
{
|
||
|
|
||
|
RequestCheckUtil::checkNotNull($this->refreshToken,"refreshToken");
|
||
|
}
|
||
|
|
||
|
public function putOtherTextParam($key, $value) {
|
||
|
$this->apiParas[$key] = $value;
|
||
|
$this->$key = $value;
|
||
|
}
|
||
|
}
|