Since the new API 1.1 I was unable to retrieve a users timeline for my RSS reader so I created simple application which give's you back this functionality.
First have to create twitter application so our application can use the key's and secrets to communicate with Twitters API.
- Create a new (twitter) application at https://dev.twitter.com/apps
- After you created the application you must click "Create my access token"
- At this point you have the consumer key, consumer secret, access token and access token secret.
You should have installed the Heroku toolbelt and exectued heroku login
before doing the next steps.
- Run
heroku create
on the project folder - Set the ENV variables with the correct values
heroku config:set NODE_ENV=production
heroku config:set CONSUMER_KEY=your-consumer-key
heroku config:set CONSUMER_SECRET=your-consumer-secret
heroku config:set ACCESS_TOKEN=your-access-token
heroku config:set ACCESS_TOKEN_SECRET=your-access-token-secret
- Deploy your application by running
git push heroku master
- Visit your app by running
heroku open
By default your app is publicly available. Because you probably don't want others to waste your rate limit you can add a simple secret to it by running:
heroku config:set APP_SECRET=your-top-secret-string-here
Now, instead of doing http://yourapp.herokuapp.com/twitter-user/ you should do http://yourapp.herokuapp.com/twitter-user/your-top-secret-string-here
Version | Notes |
---|---|
1.0.1 | Parse tweet and create links from @usernames and urls |
1.0.0 | Initial release |
Copyright © 2013 Manuel van Rijn. See LICENSE for further details.