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

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

组装接口调用参数 并调用接口
public call ( string $api, string $param = '', string $method = 'GET', $multi = false ) : json
$api string 微博API
$param string 调用API的额外参数
$method string HTTP请求方法 默认为GET
Результат json
    public function call($api, $param = '', $method = 'GET', $multi = false)
    {
        /* 腾讯微博调用公共参数 */
        $params = ['oauth_consumer_key' => $this->AppKey, 'access_token' => $this->token['access_token'], 'openid' => $this->openid(), 'clientip' => $_SERVER['REMOTE_ADDR'], 'oauth_version' => '2.a', 'scope' => 'all', 'format' => 'json'];
        $data = $this->http($this->url($api), $this->param($params, $param), $method, $multi);
        return json_decode($data, true);
    }