resource-twitter

for interacting with the Twitter API

twitter

for interacting with the Twitter API

properties

methods

for interacting with the Twitter API

  • id

    • type : any
  • credentials

    • description : credentials for logging into twitter

    • properties

      • type : object

      • consumer_key

        • type : string

        • required : true

      • consumer_secret

        • type : string

        • required : true

      • access_token_key

        • type : string

        • required : true

      • access_token_secret

        • type : string

        • required : true

  • user

    • description : a twitter user

    • properties

      • id

        • required : false
      • screenName

        • type : string

        • required : false

  • tweet

    • description : a twitter tweet

    • type : object

    • properties

      • message

        • type : string

        • required : true

  • stream

    • description : a twitter stream

    • properties

      • method

        • type : string

        • required : true

      • follow

        • type : string

        • required : false

      • track

        • type : string

        • required : false

      • locations

        • type : string

        • required : false

connects to twitter

  • options

    • description : credentials for logging into twitter

    • properties

      • type : object

      • consumer_key

        • type : string

        • required : true

      • consumer_secret

        • type : string

        • required : true

      • access_token_key

        • type : string

        • required : true

      • access_token_secret

        • type : string

        • required : true

  • callback

    • type : function

    • default : function () {}

disconnects from twitter

  • options

    • type : object

    • properties

      • user

        • description : a twitter user

        • properties

          • id

            • required : false
          • screenName

            • type : string

            • required : false

  • callback

    • type : function

    • default : function () {}

starts listening to a twitter stream

  • options

    • properties

      • user

        • description : a twitter user

        • properties

          • id

            • required : false
          • screenName

            • type : string

            • required : false

      • stream

        • description : a twitter stream

        • properties

          • method

            • type : string

            • required : true

          • follow

            • type : string

            • required : false

          • track

            • type : string

            • required : false

          • locations

            • type : string

            • required : false

  • callback

    • type : function

    • default : function (error, options, stream) {}

gets an active twitter stream

  • options

    • type : object

    • properties

      • user

        • description : a twitter user

        • properties

          • id

            • required : false
          • screenName

            • type : string

            • required : false

      • streamId

        • type : string
  • callback

    • type : function

stops listening to a twitter stream

  • object

    • type : object

    • properties

      • user

        • description : a twitter user

        • properties

          • id

            • required : false
          • screenName

            • type : string

            • required : false

      • streamId

        • type : string
  • callback

    • type : function

    • default : function (error, options) {}

collects rate limiting events from twitter

  • options

    • type : object
  • callback

    • type : function

    • default : function () {}

collects error events from twitter

  • error

  • callback

    • type : function

    • default : function () {}

sends a tweet (updates your status)

  • options

    • type : object

    • properties

      • user

        • description : a twitter user

        • properties

          • id

            • required : false
          • screenName

            • type : string

            • required : false

      • message

        • type : string

        • required : true

  • callback

    • default : function () { resource.logger.info('sent tweet: '); [].slice.call(arguments).forEach(function (arg, i) { resource.logger.info(i + ': ' + arg); }); }

receives tweets from activated streams

  • options

    • description : a twitter tweet

    • type : object

    • properties

      • message

        • type : string

        • required : true

  • callback

    • default : function () { resource.logger.info('received tweet: '); [].slice.call(arguments).forEach(function (arg, i) { resource.logger.info(i + ': ' + arg); }); }

follows a twitter user

  • options

    • properties

      • user

        • description : a twitter user

        • properties

          • id

            • required : false
          • screenName

            • type : string

            • required : false

      • screenName

        • type : string

        • required : false

      • id

        • required : false
  • callback

    • type : function

    • default : function () { resource.logger.info('followed: '); [].slice.call(arguments).forEach(function (arg, i) { resource.logger.info(i + ': ' + arg); }); }

unfollows a twitter user

  • options

    • properties

      • user

        • description : a twitter user

        • properties

          • id

            • required : false
          • screenName

            • type : string

            • required : false

      • screenName

        • type : string

        • required : false

      • id

        • required : false
  • callback

    • type : function

    • default : function () { resource.logger.info('unfollowed: '); [].slice.call(arguments).forEach(function (arg, i) { resource.logger.info(i + ': ' + arg); }); }

blocks a twitter user

  • options

    • properties

      • user

        • description : a twitter user

        • properties

          • id

            • required : false
          • screenName

            • type : string

            • required : false

      • screenName

        • type : string

        • required : false

      • id

        • required : false
  • callback

    • type : function

    • default : function () { resource.logger.info('blocked: '); [].slice.call(arguments).forEach(function (arg, i) { resource.logger.info(i + ': ' + arg); }); }

reports a twitter user

  • options

    • properties

      • user

        • description : a twitter user

        • properties

          • id

            • required : false
          • screenName

            • type : string

            • required : false

      • screenName

        • type : string

        • required : false

      • id

        • required : false
  • callback

    • type : function

    • default : function () { resource.logger.warn('reported:'); [].slice.call(arguments).forEach(function (arg, i) { resource.logger.warn(i + ': ' + arg); }); }

shows information on a twitter user

  • options

    • properties

      • user

        • description : a twitter user

        • properties

          • id

            • required : false
          • screenName

            • type : string

            • required : false

      • screenName

        • type : string

        • required : false

      • id

        • required : false
  • callback

    • type : function

gets the length of a tweet

  • options

    • description : a twitter tweet

    • type : object

    • properties

      • message

        • type : string

        • required : true

  • callback

    • type : function

    • required : false

README auto-generated with docs