protected function AcquiaDAM_Client::buildGetRequest in Media: Acquia DAM 7
Convert a URl and data into a normal URL.
Parameters
string $url: The API URL.
array $data: An array of data.
Return value
string The API URL with query string parameters added.
1 call to AcquiaDAM_Client::buildGetRequest()
- AcquiaDAM_Client::request in src/
AcquiaDAM/ AcquiaDAM_Client.inc - Make a request to the Acquia DAM API.
File
- src/
AcquiaDAM/ AcquiaDAM_Client.inc, line 48
Class
- AcquiaDAM_Client
- Client for making API requests.
Code
protected function buildGetRequest($url, array $data) {
if (!empty($data) && is_array($data)) {
$data = drupal_http_build_query($data);
$url .= '?' . $data;
}
return $url;
}