PHP Classes

How to get email is using twitter api

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement a PH...  >  All threads  >  How to get email is using twitter api  >  (Un) Subscribe thread alerts  
Subject:How to get email is using twitter api
Summary:How to get email is using twitter api
Messages:7
Author:dangdinhtu
Date:2015-09-19 15:46:39
 

  1. How to get email is using twitter api   Reply   Report abuse  
Picture of dangdinhtu dangdinhtu - 2015-09-19 15:46:39
How to get email is using twitter api

  2. Re: How to get email is using twitter api   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-09-19 18:06:46 - In reply to message 1 from dangdinhtu
Twitter does not share the user email via API. You would need to ask the user to provide the email directly.

  3. Re: How to get email is using twitter api   Reply   Report abuse  
Picture of caoyang caoyang - 2015-09-22 08:07:19 - In reply to message 2 from Manuel Lemos
hi,twitter has already allow user get email,please access https://dev.twitter.com/rest/reference/get/account/verify_credentials search "include_email" ,But I use this php class can't get the email address.

  4. Re: How to get email is using twitter api   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-09-22 14:17:14 - In reply to message 3 from caoyang
That is because your application needs a special permission from Twitter to have the users email address, as you may read here:

docs.fabric.io/ios/twitter/request- ...

  5. Re: How to get email is using twitter api   Reply   Report abuse  
Picture of dangdinhtu dangdinhtu - 2015-09-22 17:25:34 - In reply to message 1 from dangdinhtu
They accepted my special request
"Thanks for reaching out. We've enabled requesting email permissions for your app. Please note that this permission is only enabled on new sign-ins to your app. In order to begin, please log into apps.twitter.com and

Add a terms of service and privacy policy to your app info
Change your token's scope to request email"

  6. Re: How to get email is using twitter api   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-09-22 18:47:14 - In reply to message 5 from dangdinhtu
I also requested email permissions to be able to reproduce the request but I have not received a response yet.

If you have already added terms of service and privacy policy to your, you need to pass that include_email parameter.

I don't know if Twitter requires to pass any specific value to the scope when requesting a token. I will let you know when I get permission to test this.

  7. Re: How to get email is using twitter api   Reply   Report abuse  
Picture of caoyang caoyang - 2015-09-23 07:07:18 - In reply to message 4 from Manuel Lemos
Thank you very much!