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;
	}
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;
	}
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 ; }
Return the request url.

@return string
Return the request url .