public function tokenAction() { $at = new AuthToken(); $at->di = $this->di; $at->request = $this->request; $at->run(); echo $at->response->getContent(); //return $at->response; }
public function auth($access_token, $timestamp, $once, $sign, $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; $h = new AuthToken(); $h->di = $this->di; $h->request = $this->request; $h->run(); return $h->response->getContent(); }