public function getRestEndpoints($site, $login, $password, HttpClientInterface $client = null) {
    $client = $client ?: new HttpClient(array (
      'base_url' => 'https://login.eloqua.com/id', // @codeCoverageIgnore
      'version'  => '', // @codeCoverageIgnore
    ));

    $authHeader = array (
      'Authorization' => sprintf('Basic %s', base64_encode("$site\\$login:$password")),
    );

    $response = $client->get('https://login.eloqua.com/id', array(), $authHeader);

    $loginObj = $response->json();
    $urls     = $loginObj['urls']['apis']['rest'];

    $stripVersion = function($url) {
      return str_replace('/{version}/', '/', $url);
    };

    return array_map($stripVersion, $urls);
  }