Пример #1
0
 public function action_test()
 {
     try {
         $resource = Remote::get('http://docs/api', array(CURLOPT_POST => TRUE, CURLOPT_HTTPHEADER => array('Content-Type: application/x-www-form-urlencoded;charset=UTF-8'), CURLOPT_POSTFIELDS => Oauth::build_query(array())));
     } catch (Exception $e) {
         $resource = $e->getMessage();
     }
     echo '<pre>' . print_r($resource, TRUE) . '</pre>';
 }