/** * (non-PHPdoc) * * @see \Slince\OAuth\Service\ServiceInterface::request() */ function request($path, $params = []) { if ($this->_token->isExpired()) { throw new ExpiredTokenException(); } $requestParams = array_merge(['access_token' => $this->_token->getAccessToken()], $params); $body = RequestFactory::create($this->getFullUrl($path), $this->_buildRequestParam($requestParams, $this->getRequestMethod()), $this->getRequestMethod()); return $this->_parseResponse($body); }