Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
funkjunky opened this issue Oct 14, 2017 · 1 comment
Open

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

funkjunky opened this issue Oct 14, 2017 · 1 comment

Comments

@funkjunky
Copy link

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

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

@kevgathuku
Copy link

kevgathuku commented Nov 27, 2017

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants