getting twitter.postTweet is not a function
Opened this issue · 2 comments
suamorales commented
Getting twitter.postTweet is not a function
error, but GET requests work fine. Why is postTweet() undefined?
majd-asab commented
try requiring (twitter-node-client).Twitter and using that variable to with your config object. Then, try post functions
Please update this if it works
stefan-matcovici commented
Same issue here. That's what you suggested?
var Twitter = require('twitter-js-client').Twitter;
var twitter = new Twitter(config);
twitter.postTweet({status: "Test"}, error, success);