Needlessly Promiscuous, Modularize!

    twitter-api-stream

    0.0.2 • Public • Published

    twitter-api-stream

    twitter-api-stream is designed to get data from Twitter API in a very simplest way.

    How to install

    npm install twitter-api-stream --save

    How to use

    example

    var Twitter = require('twitter-api-stream')
        , twitterApi = new Twitter(YOUR_CONSUMER_KEY,YOUR_CONSUMER_SECRET,YOUR_CALLBACK_URL);
    
    twitterApi.getHomeLineTweets(userAccessToken,userRefreshToken, function (err, result) {
      if (err) {
        console.log("Error:", err);
      }
      if (result) {
        console.log("Result: ", JSON.parse(result));
      }
    });
    
    twitterApi.postTweet(userAccessToken,userRefreshToken,postText, function (err, result) {
      if (err) {
        console.log("Error:", err);
      }
      if (result) {
        console.log("Result: ", JSON.parse(result));
      }
    });
    
    twitterApi.getFollowersList(userAccessToken,userRefreshToken,postText, function (err, result) {
      if (err) {
        console.log("Error:", err);
      }
      if (result) {
        console.log("Result: ", JSON.parse(result));
      }
    });

    Keywords

    none

    Install

    npm i twitter-api-stream

    DownloadsWeekly Downloads

    8

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • vineetasharma