Request email addresses from users in Twitter4J

twitter4j

#1

Hey there, i am trying to get the user’s email from twitter api by usingTwitter4J, did all possibilities like requesting, and domain whitelisting, verifying but still not able to get the users email.
for verifying user i am using verifyCredentials() method provided by Twitter 4J This method calls https://api.twitter.com/1.1/account/verify_credentials.json but to get user email i have to calls https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true how can add that include_email=true parameter. any suggestions plz


#2

It looks like this was added to Twitter4J via this pull request, and you can configure via the properties file.


#3

By using that one i am able to fetch the owner(with credentials of Keys & secrets ) email id, but how could i fetch the others(Others account) email id. In that case we won’t get credentials of Keys & secrets with out those things can we get email id of others twitter account


#4

No. You can only request the email address of the authenticated user.


#5

hoo, ok thank you


#6

i am not even getting authenticated user email id.