Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting twitter.postTweet is not a function #34

Open
suamorales opened this issue Dec 15, 2015 · 2 comments
Open

getting twitter.postTweet is not a function #34

suamorales opened this issue Dec 15, 2015 · 2 comments

Comments

@suamorales
Copy link

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

@majd-asab
Copy link

majd-asab commented Jul 21, 2016

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants