public function url() {
		$url = $this->client->endpoint() . $this->resource . '.json';
		if (in_array($this->method, ['GET', 'DELETE']) && $this->params !== null) {
			$url .= '?' . http_build_query($this->params);
		}
		return $url;
	}