Files
kiri-wchat/qq/Token.php
T
2023-11-14 12:39:28 +08:00

27 lines
454 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.q.qq.com', '/api/getToken', $query);
}
}