src/UptimeRobot/API.php
private function buildUrl($resource, $args)
    {
        //Merge args(apiKey, Format, noJsonCallback)
        $args = array_merge($args, $this->args);
        $query = http_build_query($args);

        $url = $this->url;
        $url .= $resource . '?' . $query;

        return $url;
    }
private function buildUrl($resource, $args)
    {
        //Merge args(apiKey, Format, noJsonCallback)
        $args = array_merge($args, $this->args);
        $query = http_build_query($args);

        $url = $this->url;
        $url .= $resource . '?' . $query;

        return $url;
    }
private function buildUrl ( $ resource , $ args ) { //Merge args(apiKey, Format, noJsonCallback) $ args = array_merge ( $ args , $ this -> args ) ; $ query = http_build_query ( $ args ) ; $ url = $ this -> url ; $ url .= $ resource . '?' . $ query ; return $ url ; }
Builds the url for the curl request.

@param string $resource The resource of the api
@param array $args Array of options for the query query

@return string  Finalized Url
Builds the url for the curl request .