1 Click the Fork Button Above

From Doku Wiki
Jump to: navigation, search

Streaming Tweets typically require creating scripts and setting up a server, and keeping the connection open to Twitter. that's how to be me Blockspring lets you run your functions in the cloud without needing to install servers. Let's use Blockspring to stream Tweets!



How do I set up an Twitter streaming service that is free and not serverless.



1. Click the "Fork" button above. 2. Enter your twitter app credentials into the script (register an app and get them here: https://apps.twitter.com/) 3. Click "Publish" to deploy your function. Make sure to mark it as "Private" because you'll be able to see your credentials in there. 4. When you run your function your stream will start and will return any tweets it captures. You can run your function using the Blockspring client libraries, or via HTTP in any language.



Here's an example static HTML webpage you can build that's streaming Lebron tweets dynamically: http://twitter-example-site.s3-website-us-east-1.amazonaws.com/#.



note - this function will not work until you do the steps above! This is just a template to assist you in getting started.