TwitterJSClient icon indicating copy to clipboard operation
TwitterJSClient copied to clipboard

getting twitter.postTweet is not a function

Open suamorales opened this issue 9 years ago • 2 comments

Getting twitter.postTweet is not a function error, but GET requests work fine. Why is postTweet() undefined?

suamorales avatar Dec 15 '15 18:12 suamorales

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

majd-asab avatar Jul 21 '16 20:07 majd-asab

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

stefan-matcovici avatar Jan 06 '18 14:01 stefan-matcovici