src/Pro6pp.php
protected function call($path, $data)
    {
        $url = $this->api_host.$path.'?'.http_build_query($data);

        $ch = curl_init($url);

        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_TIMEOUT, 5);

        $return = curl_exec($ch);

        curl_close($ch);

        return $return;
    }
protected function call($path, $data)
    {
        $url = $this->api_host.$path.'?'.http_build_query($data);

        $ch = curl_init($url);

        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_TIMEOUT, 5);

        $return = curl_exec($ch);

        curl_close($ch);

        return $return;
    }
protected function call ( $ path , $ data ) { $ url = $ this -> api_host . $ path . '?' . http_build_query ( $ data ) ; $ ch = curl_init ( $ url ) ; curl_setopt ( $ ch , CURLOPT_RETURNTRANSFER , true ) ; curl_setopt ( $ ch , CURLOPT_TIMEOUT , 5 ) ; $ return = curl_exec ( $ ch ) ; curl_close ( $ ch ) ; return $ return ; }
Method to do the actual call to Pro6PP's API and return the data
in the given format.

@param $path
@param $data

@return mixed
Method to do the actual call to Pro6PP s API and return the data in the given format .