Can a Twitter app obtain user's email - twitter

I'm interested to know, is there a way I can obtain an email from a Twitter user, with legal means?
Create an app, that will pull a user's ID, email etc. Does Twitter API provide that information?

No, you cannot get the user's email address through the API. This is a deliberate design decision by the Twitter API team.

Related

Can we get a Twitter user's e-mail address using the Twitter API

If I have a user's Twitter ID or handle, can I get the e-mail address of this ID?
Your question is very confusing but here is the rule for receiving users' email.
Your application must have been approved by Twitter. More details can be found at https://dev.twitter.com/rest/reference/get/account/verify_credentials > Request a User’s Email Address. When using the form you will have to pick I need access to special permissions and inform that you want your application to have access to the user's email.
When you are approved you need to refresh all your application keys.
When this is done you need all your users to re-authorize your app with the new keys.
Finally when you call the account/verify_credentials endpoint you will receive the user's email.

Twitter API get tweets based on the user's email

I was wondering.
I want to access the tweets by using email address of the people, I already have the email addresses and then I want to search via API some statistics about the people's tweets.
Is this possible?
Any help or workaround will be appreciated, thanks.
The email addresses of Twitter users are not accessible through the API. This is a deliberate design decision by the Twitter development team for security and privacy.
The users in question would need to provide you with their email address and Twitter username. this would let you perform the sort of search you are describing.

Twitter API: post on behalf of whom?

I want to use Twitter API so my program can post some tweets. To use it I have to register application in dev-center and get some parameters like "Consumer key", "Consumer secret" etc. Then I can use either REST API, or some libraries like twitter4j - OK, that's simple.
But the question is: who will be the "author" of such tweets? Or, in other words, where can I find them after posting? Will they be posted by application or by some user? I can't really figure out how particular user binds to registered API-application... Or how can I specify ("log-in") user to post tweet on behalf of?
The "author" is always going to be the authenticating user. From the Twitter API documentation for statuses/update:
Updates the authenticating user's current status, also known as tweeting.
To answer your other question about authenticating with another user's username/password, it is possible but you need to get permission from Twitter. You also still need to use OAuth. Check out the Twitter API OAuth documentation.
You need to have a twitter account to register your application. So your account will be the author of your posts.

Using OAuth with Twitter in ASP.NET

I am using Twitter as an OAuth provider for ASP.NET MVC 4 web site. I would like to be able to follow up with a registered user at a later date, either by email or via a tweet. Outside of having the user follow me on Twitter, do I have any other options to communicate with the user?
Here is what I unsuccessfully considered:
It appears that there is no way to get access to the email address since Twitter OAuth API does not return it.
It appears I cannot send a direct message unless a user
follows me on Twitter.
"Read/Write/DirectMessage" permissions seem
too intrusive -- all I want to do is send a user a message that a
new product is released -- I don't need any of the write
capabilities that this level of permissions provides.
To recap, if a user used Twitter to sign in to my website, what are my options to contact that user at a later date?
Thanks.
Twitter's solution for this sort of person-to-person communication is the Direct Message, however, Twitter has (rightfully) decided that both parties need to consent to this channel being available. This decision is intended to reduce the amount of spam in the Twitter ecosystem.
Posting public tweets that mention the username will get your users' attention, but it is also broadcasting their relationship with your company to the entire Twitter ecosystem. You will, essentially, be advertising their relationship with your company without their permission. This approach will bring you headaches sooner or later.
Email is probably a better choice for the sort of announcement to existing customers.

Registration for own site viat twitter

anyone knows if it is possible to do registration via twitter just like facebook register (http://developers.facebook.com/docs/plugins/registration/)?
it is not login via twitter. i need to store some basic information from the twitter user, eg, name and email, and then request user to choose their own username and password for my site.
Thanks!
Twitter doesn't have this functionality at all , they have #anywhere for integration for some Twitter features on your website. That's the closest there is to this. What you can do is register an account with the information you gather from an authenticating user, but the development of this would be up to you. There are no boxed up solutions right now from Twitter. There may be something third party but I'm not aware of any.
It's also "against the rules"
You may not use Twitter Content or other data collected from end users
of your Client to create or maintain a separate status update or
social network database or service.
https://dev.twitter.com/terms/api-terms

Resources