public function testAliasEndpoint()
 {
     $apiConnection = new GuzzleRequest($this->client, 'alias/');
     $params = ['userId' => '999'];
     $identify = new ApiService($apiConnection);
     $response = $identify->send($params);
     $result = 200;
     $this->assertEquals($response->getStatusCode(), $result);
 }
 /**
  * Import endpoint API calls.
  *
  * @param array $params message to send to Segment
  * @return object Guzzle response object
  */
 public static function import(array $params)
 {
     $validate = new Validate();
     $validate->import($params);
     $message = $validate->addLibraryInfo($params);
     // Initialize Guzzle
     $client = new Client(['base_uri' => Segment::baseUrl(), 'timeout' => Segment::getTimeout(), 'auth' => [Segment::getApiKey(), ':']]);
     $apiConnection = new GuzzleRequest($client, 'import/');
     $identify = new ApiService($apiConnection);
     return $identify->send($message);
 }