SaeTOAuthV2::getAccessToken
access_token接口
对应API:
Signature
public function getAccessToken([string
$type = 'code',
array
$keys] )
Parameters
$type
— string- 请求的类型,可以为:code, password, token
$keys
— array- 其他参数:
- 当$type为code时: array('code'=>..., 'redirect_uri'=>...)
- 当$type为password时: array('username'=>..., 'password'=>...)
- 当$type为token时: array('refresh_token'=>...)
Returns
- array