Files
kiri-wchat/qq/Token.php
T
2023-11-14 01:08:06 +08:00

27 lines
438 B
PHP

<?php
namespace wchat\qq;
use Kiri\Client;
use wchat\common\Result;
class Token extends SmallProgram
{
/**
* @return Result
*/
public function token(): Result
{
$query = [
'grant_type' => 'client_credential',
'appid' => $this->payConfig->appId,
'secret' => $this->payConfig->appSecret
];
return $this->get('/api/getToken', $query);
}
}