twitter-node-client-factory
Seamlessly create a twitter-node-client
while reading the configuration from the environment.
var twitterClient = ; twitterClient;
Dependencies
The environment variables TWITTER_CONSUMER_KEY
and TWITTER_CONSUMER_SECRET
should be set.
Custom Dependencies
Supports different environment variables as long as their names are specified.
var twitterClient = null null null "KEY" "SECRET"; twitterClient;
Authenticated Requests
The created clients can be used to make API calls that require authentication.
var twitterClient = "ACCESS_TOKEN" "ACCESS_TOKEN_SECRET"; twitterClient;