/**
  * @param AbstractRequest $request
  * @return string
  * @throws \Exception
  */
 protected function createUrl(AbstractRequest $request)
 {
     if ($request->getUrl() == null) {
         throw new \Exception('No URL!');
     }
     $url = $this->api->getBaseUrl() . $request->getUrl();
     $query = http_build_query(['key' => $this->api->getApplicationKey(), 'token' => $this->api->getAuthToken()]);
     $url .= '?' . $query;
     return $url;
 }