$this->config['appid'], "client_secret" => $this->config['secret'], "grant_type" => $grantType ]; return $this->curlPostApi("oauth/client_token/",$data); } public function getAccessTokenUser(string $code = "", string $grantType = 'authorization_code'): array { $data = [ "client_key" => $this->config['appid'], "client_secret" => $this->config['secret'], "code" => $code, "grant_type" => $grantType ]; return $this->curlPostApi("oauth/access_token/",$data); } }