<?php
namespace jd_vop\request\oauth2;
use jd_vop\request\Request;
class RefreshAccessToken extends Request
{
public static $uri = "oauth2/refreshToken";
protected $refresh_token;
protected $client_id;
protected $client_secret;
public function __construct(string $refresh_token, string $client_id, string $client_secret)
{
parent::__construct();
$this->refresh_token = $refresh_token;
$this->client_id = $client_id;
$this->client_secret = $client_secret;
}
public function params(): array
{
return [
'refresh_token' => $this->refresh_token,
'client_id' => $this->client_id,
'client_secret' => $this->client_secret,
];
}
}