예제 #1
0
 /**
  * 获取请求对象
  *
  * @param array $params
  * @param array $headers
  */
 public function request($params = null, $headers = null)
 {
     require_once 'OpenApi/UU/Request.php';
     $request = new OpenApi_UU_Request();
     $response = $request->setHeader($headers)->setParameter($params)->request();
     return $response;
 }
예제 #2
0
 /**
  * 设置默认API Url
  *
  * @param string $url
  * @return void
  */
 public static function setDefaultUrl($url)
 {
     if (is_string($url)) {
         self::$_defaultUrl = $url;
     }
 }