Module Twitter::Client::Notification
In: lib/twitter/client/notification.rb

Defines methods related to notification

Methods

Public Instance methods

Disables notifications for updates from the specified user to the authenticating user

@see dev.twitter.com/docs/api/1/post/notifications/leave @rate_limited No @requires_authentication Yes @response_format `json` @response_format `xml` @param user [Integer, String] A Twitter user ID or screen name. @param options [Hash] A customizable set of options. @option options [Boolean, String, Integer] :include_entities Include {dev.twitter.com/docs/tweet-entities Tweet Entities} when set to true, ‘t’ or 1. @return [Hashie::Mash] The specified user. @example Disable device notifications for updates from @sferik

  Twitter.disable_notifications("sferik")
  Twitter.disable_notifications(7505382)  # Same as above

Enables device notifications for updates from the specified user to the authenticating user

@see dev.twitter.com/docs/api/1/post/notifications/follow @rate_limited No @requires_authentication Yes @response_format `json` @response_format `xml` @param user [Integer, String] A Twitter user ID or screen name. @param options [Hash] A customizable set of options. @option options [Boolean, String, Integer] :include_entities Include {dev.twitter.com/docs/tweet-entities Tweet Entities} when set to true, ‘t’ or 1. @return [Hashie::Mash] The specified user. @example Enable device notifications for updates from @sferik

  Twitter.enable_notifications("sferik")
  Twitter.enable_notifications(7505382)  # Same as above

[Validate]