Esempio n. 1
0
 /**
  * Send a curl request to Hipchat
  *
  * @static
  * @access  protected
  * @param   string      $url
  * @param   array       $data
  * @return  Hybrid\Curl
  */
 protected static function call($url, $data)
 {
     $request = Curl::make($url, $data);
     $request->option(CURLOPT_SSL_VERIFYPEER, Config::get('hipchat::api.verify_ssl', 1));
     $request->option(CURLOPT_FOLLOWLOCATION, 1);
     $request->option(CURLOPT_RETURNTRANSFER, 1);
     $request->option(CURLOPT_TIMEOUT, 15);
     return $request->call();
 }