1.1.4 • Published 8 years ago

twitter-api-tools v1.1.4

Weekly downloads
2
License
ISC
Repository
-
Last release
8 years ago

Description

A Node Module with some cool features for interacting with the twitter API, using twitter-node-client

Installation

npm install twitter-api-tools
var Twitter = require('./twitterClient').twitterFunctions;

Usage

You will need to pass the API Config required for twitter-node-client in the constructor,

  //Get this data from your twitter apps dashboard thanks @BoyCook
  var config = {
      "consumerKey": "XXX",
      "consumerSecret": "XXX",
      "accessToken": "XXX",
      "accessTokenSecret": "XXX",
      "callBackUrl": "XXX"
  }

  twitter = new Twitter(config);

  //Returns an object mapping words used in all tweets to # of times used
  Twitter.getFrequencyObject('TwitterUsername', function(obj,error){
    console.log(obj,error);
  });

  //Returns all tweets from user's page going back to creation, in array
  Twitter.getAllTweets('TwitterUsername', function(arr ,error){
    console.log(arr,error);
  });
1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago