示例#1
0
 protected function _load()
 {
     try {
         $this->client->getAccessToken();
         $response = $this->client->api('/account/verify_credentials.json', 'GET', $this->params);
         foreach ($response as $key => $value) {
             $this->{$key} = $value;
         }
     } catch (Inchoo_SocialConnect_Twitter_Oauth_Exception $e) {
         $this->_onException($e);
     } catch (Exception $e) {
         $this->_onException($e);
     }
 }