MunGell / Codeigniter-TwitterOAuth

Codeigniter and TwitterOauth library integration
76 stars 62 forks source link

Return user data #17

Closed ShSoS closed 9 years ago

ShSoS commented 9 years ago

Hello,

Thank you for library. It's work perfectly.

I have a question about user information. Is it possibility to get more data than twitter id and username?

I check ./application/library/Twitteroauth.php

function getAccessToken($oauth_verifier) { $parameters = array(); $parameters['oauth_verifier'] = $oauth_verifier; $request = $this->oAuthRequest($this->accessTokenURL(), 'GET', $parameters); $token = OAuthUtil::parse_parameters($request); $this->token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']); return $token; }

I understand the callback function in controller use function above to get user data. Can i retrieve more data like user profil picture, email, first name, last name?

Thank you