TwitterJSClient icon indicating copy to clipboard operation
TwitterJSClient copied to clipboard

Don't force directory structure on the user of your library

Open funkjunky opened this issue 8 years ago • 1 comments

Why can't I simply provide the configurations in the code?

Don't assume you know how to architect code better than your clients.

funkjunky avatar Oct 14 '17 21:10 funkjunky

You can still provide the config to the Twitter object directly in your code i.e.

let config = {
  consumerKey: "xxx",
  consumerSecret: "xxx",
  accessToken: "xxx",
  accessTokenSecret: "xxx",
  callBackUrl: "xxx"
};
let twitter = new Twitter(config);

kevgathuku avatar Nov 27 '17 10:11 kevgathuku