Skip to content

Instantly share code, notes, and snippets.

@maciekgrzybek
Created April 7, 2019 19:43
Show Gist options
  • Save maciekgrzybek/eef59564599d8c9215b061ef0fc97afb to your computer and use it in GitHub Desktop.
Save maciekgrzybek/eef59564599d8c9215b061ef0fc97afb to your computer and use it in GitHub Desktop.
const request = require('request-promise');
module.exports = class TwitterController {
constructor(consumerKey, consumerSecret, token, tokenSecret, urlBase, environment, crcUrl) {
this.consumerKey = consumerKey;
this.consumerSecret = consumerSecret;
this.token = token;
this.tokenSecret = tokenSecret;
this.urlBase = urlBase;
this.environment = environment;
this.crcUrl = crcUrl;
this.credentials = {
consumer_key: this.consumerKey,
consumer_secret: this.consumerSecret,
token: this.token,
token_secret: this.tokenSecret,
};
this.registerWebhook = this.registerWebhook.bind(this);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment