Possible to monitor twitter in my app?
I'm building an app, where the user can su开发者_C百科bmit their mood (from 0-10), and then i count the sum of all the submitted values.
If i create a twitter account (lets call it @mood).
Can i then build a service, who monitors twitter, so the user can write (in twitter) like "@mood 6"
And i get the value "6" in my application?
I'm using ASP.NET MVC3 with Razor and LINQ 2 SQL.
Thanks in advance.
I suggest you look into the Twitter API and the Developer Center for creating your mood post.
Getting the information should be easy using the feed of the twitter account.
Yes.
Your Twitter application should authenticate as the "@Mood" user several times a day (the frequency depends on how many tweets you expect to be getting.
You would then monitor the "Mentions" timeline (easily done through the Twitter API) to retrieve the messages you describe.
精彩评论