protected function getRequestUrl($data) { $url = sprintf('%s?%s', $this->getEndpoint(), http_build_query($data)); return $url; }