protected function AcquiaLiftAPI::generateEndpoint in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 includes/acquia_lift.classes.inc \AcquiaLiftAPI::generateEndpoint()
Returns the fully qualified URL to use to connect to API.
This function handles personalizing the endpoint to the client by handling owner code and API keys.
Parameters
$path: The $path to the endpoint at the API base url.
$admin: Boolean indicating whether to use admin key (true) or runtime (false).
10 calls to AcquiaLiftAPI::generateEndpoint()
- AcquiaLiftAPI::deleteAgent in includes/
AcquiaLiftAPI.inc - Deletes the campaign with the specified name.
- AcquiaLiftAPI::getAgent in includes/
AcquiaLiftAPI.inc - Returns the campaign with the provided name if it exists, FALSE otherwise.
- AcquiaLiftAPI::getAudienceReport in includes/
AcquiaLiftAPI.inc - AcquiaLiftAPI::getCampaigns in includes/
AcquiaLiftAPI.inc - AcquiaLiftAPI::getPersonalizationOverviewReport in includes/
AcquiaLiftAPI.inc
File
- includes/
AcquiaLiftAPI.inc, line 527
Class
Code
protected function generateEndpoint($path, $admin = TRUE) {
$endpoint = $this->api_url;
if (substr($path, 0, 1) !== '/') {
$endpoint .= '/';
}
$endpoint .= $path;
return $endpoint;
}