Created
April 7, 2019 19:43
-
-
Save maciekgrzybek/eef59564599d8c9215b061ef0fc97afb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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