Skip to content

Sample Twitter Node.js web app to auth and make API calls to find Friends and Followers using node-twitter-api

License

Notifications You must be signed in to change notification settings

hallihan/friendline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FriendLine

##Overview

This is a sample project that I put together to learn more about OAuth, Node.js and Twitter's API.

For the time being, it's up and running at: http://friendline.azurewebsites.net. I reserve the right to take it down without notice if it starts costing me any significant money for hosting.

This is a basic friend/follower info browser. I wrote from the ground up (not using express or connect) so that I'd have to understand more of the low-level interactions between node and the clients. Session management is a simple cookie(rid initially, then twauth). In the current design, the accessTokenSecret is held in-memory on the server, so client logins will expire if the server process is recycled.

##Dependencies

##How do I get this working?

First, you'll need to create an App over at dev.twitter.com. Once you have an App consumerKey and consumerSecret, copy settings_sample.json to settings.json and enter the key and secret in the appropriate locations.

You'll also need to edit 'app:callbackUri' in the settings file to reflect where you're going to run. If you're running local, just use 'http://localhost:1337/twauth'.

Launch locally by running node server.js then open your browser to http://localhost:1337/

###License

Apache License Version 2.0 Included as LICENSE.TXT

About

Sample Twitter Node.js web app to auth and make API calls to find Friends and Followers using node-twitter-api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published