private function initiateGet($url, $params)
    {;
        if (!empty($params))
        {
            $parameter=implode(array_values($params));
            $url .= '/'.$parameter;
        }
        $ch = curl_init($this->host.'/'.$url);
        curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authentication: Token ". $this->token));
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

        return $ch;
    }
private function initiateGet($url, $params)
    {;
        if (!empty($params))
        {
            $parameter=implode(array_values($params));
            $url .= '/'.$parameter;
        }
        $ch = curl_init($this->host.'/'.$url);
        curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authentication: Token ". $this->token));
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

        return $ch;
    }
private function initiateGet ( $ url , $ params ) { ; if ( ! empty ( $ params ) ) { $ parameter = implode ( array_values ( $ params ) ) ; $ url .= '/' . $ parameter ; } $ ch = curl_init ( $ this -> host . '/' . $ url ) ; curl_setopt ( $ ch , CURLOPT_HTTPHEADER , array ( "Authentication: Token " . $ this -> token ) ) ; curl_setopt ( $ ch , CURLOPT_RETURNTRANSFER , 1 ) ; return $ ch ; }
Initiates curl session for GET method

@param string $url   Relative url for the request
@param array $params Parameters for the request
@return resource
Initiates curl session for GET method