You are here

protected function ALProfilesAPI::httpClient in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 acquia_lift_profiles/includes/acquia_lift_profiles.classes.inc \ALProfilesAPI::httpClient()

Returns an http client to use for Acquia Lift Profiles calls.

Return value

AcquiaLiftDrupalHttpClientInterface

1 call to ALProfilesAPI::httpClient()
ALProfilesAPI::getAuthHeader in acquia_lift_profiles/includes/acquia_lift_profiles.classes.inc
Returns a string to use for the 'Authorization' header.

File

acquia_lift_profiles/includes/acquia_lift_profiles.classes.inc, line 201
Provides an agent type for Acquia Lift Profiles

Class

ALProfilesAPI
@file Provides an agent type for Acquia Lift Profiles

Code

protected function httpClient() {
  if (!isset($this->httpClient)) {
    $this->httpClient = new AcquiaLiftDrupalHttpClient();
  }
  return $this->httpClient;
}