org\oauth\driver\Kaixin::call PHP Метод

call() публичный Метод

组装接口调用参数 并调用接口
public call ( string $api, string $param = '', string $method = 'GET' ) : json
$api string 开心网API
$param string 调用API的额外参数
$method string HTTP请求方法 默认为GET
Результат json
    public function call($api, $param = '', $method = 'GET')
    {
        /* 开心网调用公共参数 */
        $params = ['access_token' => $this->token['access_token']];
        $data = $this->http($this->url($api, '.json'), $this->param($params, $param), $method);
        return json_decode($data, true);
    }