public function buildRequestParts(
        string $url,
        array $query = [],
        array $body = [],
        array $server = []
    ): RequestParts {
        $url = trim($url, '/');
        $url = trim("{$this->version}/$url", '/');
        $url = $this->buildUrlParams($url, $query);

        return new RequestParts(
            $url,
            [
                'json' => $body,
                'headers' => $server,
            ],
            [
                'decode_content' => 'gzip',
            ]
        );
    }
public function buildRequestParts(
        string $url,
        array $query = [],
        array $body = [],
        array $server = []
    ): RequestParts {
        $url = trim($url, '/');
        $url = trim("{$this->version}/$url", '/');
        $url = $this->buildUrlParams($url, $query);

        return new RequestParts(
            $url,
            [
                'json' => $body,
                'headers' => $server,
            ],
            [
                'decode_content' => 'gzip',
            ]
        );
    }
public function buildRequestParts ( string $ url , array $ query = [ ] , array $ body = [ ] , array $ server = [ ] ) : RequestParts { $ url = trim ( $ url , '/' ) ; $ url = trim ( "{$this->version}/$url" , '/' ) ; $ url = $ this -> buildUrlParams ( $ url , $ query ) ; return new RequestParts ( $ url , [ 'json' => $ body , 'headers' => $ server , ] , [ 'decode_content' => 'gzip' , ] ) ; }
Get some parameters and build a RequestParts instance.

@param string $url
@param array  $query
@param array  $body
@param array  $server

@return RequestParts
Get some parameters and build a RequestParts instance .