I need to get the user’s email for further registration on the site.
To do this, I first enabled this checkbox and specified Privacy Policy URL and Terms of Service URL
After that, I took the following steps to get the user’s email.
-
I authorize the user as indicated in the documentation
I authorize the user with oauth_token
/oauth/authorize
-
I get tokens for the user through this endpoint /oauth/access_token
-
According to the documentation, to receive an email I should use this endpoint /1.1/account/verify_credentials.json?include_email=true
But the response does not have an email field or anything related to it. In addition, the documentation says that after I enable the “Request email addresses from users” checkbox, I should see information about this in the oauth/authorize dialog, but there is nothing related to email.
I tried to regenerate consumer keys but it doesn’t help
Also, I use this js library for all request NPM node-twitter-api
Did you revoke the app tokens before this? I think you need to reset them for the email permission to apply.
Also,
Is this being passed as a string or as a boolean? I think it needs to be string to work, and some libraries use a boolean. This was a problem with some php libraries, but i don’t know if it applies to the node one. A way to verify may be to try to make the call in GitHub - twitter/twurl: OAuth-enabled curl for the Twitter API or Postman
Hi @IgorBrigadir
Thank you for your answer
Yes, I regenerated consumer keys.
about second I will check