This is pretty backwards, but I need to be able to use my app with different
twitter accounts using Twitter API. Before I spent some steps fetching
oauth_access_secret manually which was quite boring.
Now using Zombie.js I can automate whole process of obtaining authentication token. I made this into separate package to be easily re-used across my and other's apps.
var TAuth = ;var auth =username : processenvTWITTER_USERNAMEpassword : processenvTWITTER_PASSWORDconsumerKey : processenvCONSUMER_KEYconsumerSecret : processenvCONSUMER_SECRET;auth;
Right now there is only one test. You need to suply your own twitter username/password as well as consumer key/secret to run it. Consumer key/secret has to be obtained in developer panel on twitter.com.
TWITTER_USERNAME=username TWITTER_PASSWORD=password CONSUMER_KEY=kkkkkkkkkkkkkkkkkkkkkk CONSUMER_SECRET=ssssssssssssssssssssssssssssssssssssssssss npm test