org\oauth\driver\Taobao::call PHP Method

call() public method

组装接口调用参数 并调用接口
public call ( string $api, string $param = '', string $method = 'GET' ) : json
$api string 微博API
$param string 调用API的额外参数
$method string HTTP请求方法 默认为GET
return json
    public function call($api, $param = '', $method = 'GET')
    {
        /* 淘宝网调用公共参数 */
        $params = ['method' => $api, 'access_token' => $this->token['access_token'], 'format' => 'json', 'v' => '2.0'];
        $data = $this->http($this->url(''), $this->param($params, $param), $method);
        return json_decode($data, true);
    }