Skip to content

getting twitter.postTweet is not a function #34

Open

Description

@suamorales

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

Activity

  1. majd-asab commented on Jul 21, 2016

    @majd-asab

    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

  2. stefan-matcovici commented on Jan 6, 2018

    @stefan-matcovici

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions