src/Request.php
protected function getUrl($params)
    {
        // Figure protocol http:// or https://
        $protocol = $this->getProtocol();

        // The base
        $url = $protocol . "://api.viddler.com/api/v2/" . $this->method . ".php";

        // Add on the params
        if (!$this->isPost() && @count($params) > 0 && is_array($params)) {
            $url .= "?" . implode("&", $params);
        }

        return $url;
    }
protected function getUrl($params)
    {
        // Figure protocol http:// or https://
        $protocol = $this->getProtocol();

        // The base
        $url = $protocol . "://api.viddler.com/api/v2/" . $this->method . ".php";

        // Add on the params
        if (!$this->isPost() && @count($params) > 0 && is_array($params)) {
            $url .= "?" . implode("&", $params);
        }

        return $url;
    }
protected function getUrl ( $ params ) { // Figure protocol http:// or https:// $ protocol = $ this -> getProtocol ( ) ; // The base $ url = $ protocol . "://api.viddler.com/api/v2/" . $ this -> method . ".php" ; // Add on the params if ( ! $ this -> isPost ( ) && @ count ( $ params ) > 0 && is_array ( $ params ) ) { $ url .= "?" . implode ( "&" , $ params ) ; } return $ url ; }
Builds the URL for the request
Builds the URL for the request