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
'use strict'; | |
const https = require("https"); | |
const qs = require("querystring"); | |
const esc = qs.escape; | |
const crypto = require('crypto'); | |
const HMAC = crypto.createHmac; | |
class twitter { | |
constructor(o) { | |
// if (!o || !o.consumer_key || !o.consumer_secret) throw new Error("Missing Paramaters"); | |
this.id = o.consumer_key; |