twitter-stream-channels

API Docs for: 1.0.0
Show:

MockDataRetriever

Summary

This contructor is private, you should access it via TwitterStreamChannels.launchMockDataRetriever(credentials,options)

This will allow you to create your own json data mocks

Keep in mind this class is not designed to retrieve lots of tweets on long duration.

It was only designed to ease the creation of your data mocks to use after with TwitterStreamChannels.getMockedClass()

More infos in the README on the github repo

Constructor

MockDataRetriever

Syntax

MockDataRetriever

(
  • credentials
  • options
)
MockDataRetriever private

Summary

Parameters:

  • credentials Object
  • options Object
    • track Array

      array of keywords to track

    • output String

      filepath of the json file where to put the retrieved tweets

    • [maxNumber=200] String optional

      maximum number of tweets that will be retrieved (default 200 / max 500)

    • [timeout=100000] String optional

      maximum delay after the stream will close whatever number of tweets are captured (default 100 000ms)

Returns:

Item Index