public function buildRequestUrl($resource, $parameters = array()) {
    foreach ($parameters as $property => $value) {
      if (is_bool($value)) {
        $parameters[$property] = $value ? 'true' : 'false';
      }
    }
    $query = empty($parameters) ? '' : '?' . http_build_query($parameters, NULL, '&');
    return sprintf('%s/%s%s', self::ENDPOINT, $resource, $query);
  }
public function buildRequestUrl($resource, $parameters = array()) {
    foreach ($parameters as $property => $value) {
      if (is_bool($value)) {
        $parameters[$property] = $value ? 'true' : 'false';
      }
    }
    $query = empty($parameters) ? '' : '?' . http_build_query($parameters, NULL, '&');
    return sprintf('%s/%s%s', self::ENDPOINT, $resource, $query);
  }
public function buildRequestUrl ( $ resource , $ parameters = array ( ) ) { foreach ( $ parameters as $ property => $ value ) { if ( is_bool ( $ value ) ) { $ parameters [ $ property ] = $ value ? 'true' : 'false' ; } } $ query = empty ( $ parameters ) ? '' : '?' . http_build_query ( $ parameters , NULL , '&' ) ; return sprintf ( '%s/%s%s' , self :: ENDPOINT , $ resource , $ query ) ; }
Builds the request URL.

The Pingdom API requires boolean values to be transmitted as "true" and
"false" string representations. To preserve the convenience of using the
boolean types we will convert them here.

@param string $resource
The resource path part of the URL, without leading or trailing slashes.
@param array $parameters
An array of query string parameters to append to the URL.

@return string
The fully-formed request URI.
Builds the request URL .