public function gapiRequest::getUrl in Google Analytics Statistics 7.2
Return the URL to be requested, optionally adding GET variables
Parameters
Array $get_variables:
Return value
String
File
- includes/
gapi.class.php, line 687
Class
- gapiRequest
- Google Analytics API request
Code
public function getUrl($get_variables = null) {
if (is_array($get_variables)) {
$get_variables = '?' . str_replace('&', '&', urldecode(http_build_query($get_variables, '', '&')));
}
else {
$get_variables = null;
}
return $this->url . $get_variables;
}