I'm using Spring.NET Twitter extensions in an application. Instead of querying in a loop for twit updates (pulling), I just want to listen to twits of interest (hashtags, @ mentions, keywords or updates in timeline) and receive push notifications as they come. So I think the way to do it is to use an event model such as Observables, however, I can't find anything in the API to handle this nor any samples to demonstrate it. I would appreciate if anyone can put me in the right direction for this functionality. Thanks.
Twitter push notifications using Spring Social .NET
319 Views Asked by orad At
2
There are 2 best solutions below
0
Lee Campbell
On
Rx will just allow you to expose Push based API nicely. If the API does not support Push then you could use Rx to Fake Push by doing polling but expose it as if it was push (Observable.Interval or Schedulers etc).
You first will need to find how Twitter exposes Push based notifcations. If your Client (Spring.NET Twitter Ext) does not support this you are stuck with polling (via Rx or not).
It appears that you want to look at Twitter Streams API (https://dev.twitter.com/docs/streaming-apis)
Related Questions in TWITTER
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Customizing tweet view using Fabric SDK
- Get email address from Twitter
- Click tweet button after changing data-text
- MongoDB string index that is not text?
- how can I access user details through "oauth_token" from twitter api in ionic framework
- Vine API - User Data based on Anchor
- Twitter/Facebook in-app browser on Android not displaying my site correctly
- how to get stats for twitter ad campaign
- twitter response: "error 32: Could not authenticate you" from Heroku, but not desktop
- Twitter share android titanium with social.js file not working
- Ruby, update twitter avatar and background
- Insights for Twitter service in IBM Bluemix: Search case-sensitive string and other questions
- twitter json formatting in php
Related Questions in OBSERVABLECOLLECTION
- Update ObservableCollection where the items are received from another List
- Merging a list into an ObservableCollection is throwing too many Property change notifications
- C# Displaying String of ObservableCollection on event CollectionChanged
- Databinding ObservableCollection<T> to Datagrid not working
- DependencyProperty of type ObservableCollection doesn't bind
- Windows Phone. ObservableCollection as a source for ListView in Chat application
- how to get data from ObservableCollection C#
- Binding DataTable using ObservableCollection to ListView
- ListView items from an ObservableCollection that need to prepare themselves for realization
- How to notify property change for count of an ObservableCollection in windows phone 8?
- C# Observable delay until certain condition met
- C# observable collection
- Linq compare two ObservableCollection<T> with Except
- Another ComboBox binding not working as expected
- Comparing Items in two ObservableCollections
Related Questions in SYSTEM.REACTIVE
- Convert IEnumerable to IObservable with variable Period
- How to use .NET Rx FromEvent so that add event handler is called once and remove handler is called on demand
- How to prevent Scan from running multiple times?
- Generate numbers at random time intervals with rx
- Throwing data through narrow gate with Rx (Reactive Extensions)
- Is there something like ThrottleOrMax in rx?
- Is it the best to implement ObservableBase in this situation or is there another way?
- Is it possible to send a message not to all observers using .net Rx?
- Data service in Reactive Extension
- How do I create an Rx observable that gets an immediate value and then samples?
- Creating a hot observable and adding things to it
- Reactive Extension : 3 Consecutive occurance of a Record
- Conditional pairing of two streams - Combine If in Reactive Extensions
- Observable.Interval restarts for each subscription
- Create Observable from side-effects in Do block
Related Questions in SPRING.NET
- Spring.net + Hibernate error while upgrading ASP.NET version to .net 4.5
- SetUp : Spring.Objects.Factory.ObjectDefinitionStoreException : Error registering object with name 'NHibernateSessionFactory' defined in 'assembly
- Get object by attribute value
- How to initialize a Spring.net GenericApplicationContext after adding Object Definitions
- Spring.net to structuremap dependency injection conversion
- Windsor and delegating object creation/registration
- Spring.NET XML Configuration Woes
- NHibernate Spring .NET adding advice to transaction proxy
- Object Xml Mapping
- possible GetObjectsOfType replacement
- Getting Microsoft test framework to use Spring.Net to create test classes
- Spring.NET lacks recursive dependencies resolution?
- Nhibernate + Spring.Net + Transaction + too many threads
- Generic Dictionary containing Generic List values in Spring.Net
- Spring.NET: Enum to object mapping
Related Questions in SPRING-SOCIAL
- Spring Social and Session Registry
- connect/twitter POST not redirecting to twitter authorisation
- Can Spring Social login be used for authentication?
- No Spring Security Remember me cookie created when logging in programmatically
- Spring Social Google used as Sign in Provider fails with 403 after successful Oauth2 login
- Spring Social Twitter - Application notified when account is mentioned
- Implement PrincipalExtractor for facebook (spring boot with social)
- Spring Social- Connect without having to constantly authorize the user
- How to check for the expired access token in spring social
- Spring Social Facebook
- Implicit sign up while using SocialAuthenticationFIlter- xml confuguration
- what is DH keypair exception and how to resolve that
- Social authentication in JAX-RS
- Spring Social + Spring MVC + Maven
- Redirect from facebook login to localhost
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Spring Social Twitter only recently started supporting Twitter's streaming API. But that's for Java and your question is about SpringSocial.NET. I doubt that SpringSocial.NET has support for this yet. But I'll ping Bruno (the SpringSocial.NET project lead) and see if he can chime in here.
Until SpringSocial.NET supports Twitter's streaming API, your options are to continue polling (which is non-ideal due to rate limiting concerns) or to implement streaming support on your own. I'm sure Bruno wouldn't mind a pull-request to add streaming support to his project. :)
To be clear, SpringSocial.NET is not the same project as Spring Social and the two projects are only loosely related (in that I know who to email if there's ever a question about SpringSocial.NET).