protected function _setRequestToken($requestToken) { $this->_options['code'] = $requestToken; $accesstoken = Tbs_OAuth2_Consumer::getAccessToken($this->_options); $accesstoken['timestamp'] = time(); $this->_accessToken = $accesstoken; }
protected function _getData($label, $url, $redirects = true) { if (!$this->_hasData($label)) { $value = Tbs_OAuth2_Consumer::getData($url, $this->_accessToken['access_token'], $redirects); $this->_setData($label, $value); } return $this->data[$label]; }