public function build($method, $uri, $params = null)
	{
		$request = [
			'http_method' => $method,
			'scheme' => $this->schema,
			'uri' => $this->uri . $uri,
			'headers' => [
				'Host' => [$this->host],
				'User-Agent' => [$this->getUserAgent()],
			],
			'client' => [
				'connect_timeout' => 30,
				'timeout' => 60,
			],
			'version' => 1.1,
		];

		// Build query
		if (!empty($params)) {
			$request['query_string'] = http_build_query($params);
		}

		return $request;
	}
public function build($method, $uri, $params = null)
	{
		$request = [
			'http_method' => $method,
			'scheme' => $this->schema,
			'uri' => $this->uri . $uri,
			'headers' => [
				'Host' => [$this->host],
				'User-Agent' => [$this->getUserAgent()],
			],
			'client' => [
				'connect_timeout' => 30,
				'timeout' => 60,
			],
			'version' => 1.1,
		];

		// Build query
		if (!empty($params)) {
			$request['query_string'] = http_build_query($params);
		}

		return $request;
	}
public function build ( $ method , $ uri , $ params = null ) { $ request = [ 'http_method' => $ method , 'scheme' => $ this -> schema , 'uri' => $ this -> uri . $ uri , 'headers' => [ 'Host' => [ $ this -> host ] , 'User-Agent' => [ $ this -> getUserAgent ( ) ] , ] , 'client' => [ 'connect_timeout' => 30 , 'timeout' => 60 , ] , 'version' => 1.1 , ] ; // Build query if ( ! empty ( $ params ) ) { $ request [ 'query_string' ] = http_build_query ( $ params ) ; } return $ request ; }
Creates only basic request params

@param string     $method
@param string     $uri
@param null|array $params
@return array
Creates only basic request params