Exemplo n.º 1
0
 public function apiAction()
 {
     $aa = new AuthApi();
     $aa->di = $this->di;
     $aa->request = $this->request;
     $aa->run();
     return $aa->response;
 }
Exemplo n.º 2
0
 public function api($access_token, $timestamp, $once, $method, $sign, $user_token = '', $post_body = '', $attach = '', $format = 'XML', $sign_type = 'MD5', $version = '1.0.1')
 {
     $this->request = new Request();
     $this->request->access_token = $access_token;
     $this->request->timestamp = $timestamp;
     $this->request->once = $once;
     $this->request->attach = $attach;
     $this->request->format = $format;
     $this->request->sign_type = $sign_type;
     $this->request->sign = $sign;
     $this->request->version = $version;
     $this->request->post_body = $post_body;
     $this->request->method = $method;
     $this->request->user_token = $user_token;
     $h = new AuthApi();
     $h->di = $this->di;
     $h->request = $this->request;
     $h->run();
     return $h->response->getContent();
 }