BoyCook / TwitterJSClient

Twitter client written in JavaScript packaged as a node module
GNU General Public License v2.0
562 stars 176 forks source link

getting twitter.postTweet is not a function #34

Open suamorales opened 8 years ago

suamorales commented 8 years ago

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

majd-asab commented 8 years ago

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 6 years ago

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