TwitterJSClient
TwitterJSClient copied to clipboard
getting twitter.postTweet is not a function
Getting twitter.postTweet is not a function
error, but GET requests work fine. Why is postTweet() undefined?
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
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);