Class: Twitter::REST::Client
- Includes:
- API
- Defined in:
- lib/twitter/rest/client.rb
Constant Summary
Constants included from Users
Constants included from Utils
Constants included from Tweets
Tweets::MAX_TWEETS_PER_REQUEST
Constants included from Timelines
Timelines::DEFAULT_TWEETS_PER_REQUEST, Timelines::MAX_TWEETS_PER_REQUEST
Constants included from Search
Search::MAX_TWEETS_PER_REQUEST
Constants included from PremiumSearch
PremiumSearch::MAX_TWEETS_PER_REQUEST
Constants included from Lists
Instance Attribute Summary collapse
-
#bearer_token ⇒ Object
Returns the value of attribute bearer_token.
Attributes inherited from Client
#access_token, #access_token_secret, #consumer_key, #consumer_secret, #dev_environment, #proxy, #timeouts, #user_agent
Instance Method Summary collapse
Methods included from Users
#block, #block?, #blocked, #blocked_ids, #contributees, #contributors, #mute, #muted, #muted_ids, #profile_banner, #remove_profile_banner, #settings, #unblock, #unmute, #update_delivery_device, #update_profile, #update_profile_background_image, #update_profile_banner, #update_profile_image, #user, #user?, #user_search, #users, #verify_credentials
Methods included from Utils
Methods included from Undocumented
#following_followers_of, #tweet_count
Methods included from Tweets
#destroy_status, #oembed, #oembeds, #retweet, #retweet!, #retweeters_ids, #retweeters_of, #retweets, #status, #statuses, #unretweet, #update, #update!, #update_with_media
Methods included from Trends
#trends, #trends_available, #trends_closest
Methods included from Timelines
#home_timeline, #mentions_timeline, #retweeted_by_me, #retweeted_by_user, #retweeted_to_me, #retweets_of_me, #user_timeline
Methods included from SuggestedUsers
Methods included from SpamReporting
Methods included from Search
Methods included from SavedSearches
#create_saved_search, #destroy_saved_search, #saved_search, #saved_searches
Methods included from PremiumSearch
Methods included from PlacesAndGeo
#geo_search, #place, #reverse_geocode, #similar_places
Methods included from OAuth
#invalidate_token, #reverse_token, #token
Methods included from Lists
#add_list_member, #add_list_members, #create_list, #destroy_list, #list, #list_member?, #list_members, #list_subscribe, #list_subscriber?, #list_subscribers, #list_timeline, #list_unsubscribe, #list_update, #lists, #memberships, #owned_lists, #remove_list_member, #remove_list_members, #subscriptions
Methods included from Help
Methods included from FriendsAndFollowers
#follow, #follow!, #follower_ids, #followers, #friend_ids, #friends, #friendship, #friendship?, #friendship_update, #friendships, #friendships_incoming, #friendships_outgoing, #no_retweet_ids, #unfollow
Methods included from Favorites
#favorite, #favorite!, #favorites, #unfavorite, #unfavorite!
Methods included from DirectMessages::WelcomeMessages
#create_welcome_message, #create_welcome_message_rule, #destroy_welcome_message, #destroy_welcome_message_rule, #update_welcome_message, #welcome_message, #welcome_message_list, #welcome_message_rule, #welcome_message_rule_list
Methods included from DirectMessages
#create_direct_message, #create_direct_message_event, #create_direct_message_event_with_media, #destroy_direct_message, #direct_message, #direct_message_event, #direct_messages, #direct_messages_events, #direct_messages_list, #direct_messages_received, #direct_messages_sent
Methods included from AccountActivity
#check_subscription, #create_subscription, #create_webhook, #deactivate_subscription, #delete_webhook, #list_webhooks, #trigger_crc_check
Methods inherited from Client
#credentials, #initialize, #user_token?
Constructor Details
This class inherits a constructor from Twitter::Client
Instance Attribute Details
#bearer_token ⇒ Object
Returns the value of attribute bearer_token.
10 11 12 |
# File 'lib/twitter/rest/client.rb', line 10 def bearer_token @bearer_token end |
Instance Method Details
#bearer_token? ⇒ Boolean
13 14 15 |
# File 'lib/twitter/rest/client.rb', line 13 def bearer_token? !!bearer_token end |
#credentials? ⇒ Boolean
18 19 20 |
# File 'lib/twitter/rest/client.rb', line 18 def credentials? super || bearer_token? end |