Recommend this page to a friend! |
Classes of Igor Escobar | Terminal Crossword | twitter-streaming/node_modules/ntwitter/README.md | Download |
|
|
DownloadAsynchronous Twitter client API for node.jsntwitter is an improved version of jdub's node-twitter, which in turn was inspired by, and uses some code from, technoweenie's twitter-node. InstallationYou can install ntwitter and its dependencies with npm: Getting startedThis library is, for the most part, the same API as The most significant API change involves error handling in callbacks. Callbacks now receive the error as a separate parameter, rather than as part of the data. This is consistent with node's standard library. Callbacks should now look something like this:
Where Setup APIThe keys listed below can be obtained from dev.twitter.com after setting up a new App.
REST APIInteraction with other parts of Twitter is accomplished through their RESTful API. The best documentation for this exists at dev.twitter.com. Convenience methods exist for many of the available methods, but some may be more up-to-date than others. If your Twitter interaction is very important, double-check the parameters in the code with Twitter's current documentation. Note that all functions may be chained:
Search API
Streaming APIThe stream() callback receives a Stream-like EventEmitter. Here is an example of how to call the
Here is an example of how to call the 'statuses/filter' method with a bounding box over San Fransisco and New York City ( see streaming api for more details on locations ):
ntwitter also supports user and site streams:
ContributorsLots of people contribute to this project. You should too! TODO
|