Module: X::Objects::API
- Includes:
- X::Objects::Actions::DirectMessages, X::Objects::Actions::Engagement, X::Objects::Actions::Lists, X::Objects::Actions::Posts, X::Objects::Actions::Relationships, Lookups::Communities, Lookups::DirectMessages, Lookups::Lists, Lookups::Media, Lookups::Posts, Lookups::Spaces, Lookups::Trends, Lookups::Users
- Included in:
- Client
- Defined in:
- x-objects/lib/x/objects/api.rb
Overview
The resource methods mixed into a client that responds to get, post, put, and delete
The x gem includes it into X::Client. With x-core and x-objects alone, or with a client of your own, include it yourself: X::Client.include(X::Objects::API).
It is the one module of the object layer to include. The modules it includes, those of Lookups and Actions, are internal: their methods are public API of the client that includes API, but how they are grouped can change within 1.x, and some need the methods of another, such as current_user_id. So are the modules the resource classes extend and include, such as Finders and Relationships: the methods they give a resource class are public API, the modules are not.
Neither API nor a module it includes holds a constant, as a constant of a module is a constant of each class that includes it: a class that inherits from the client and names Media, or Users, reads the constant the name reads anywhere else, not a module of the object layer.
Instance Method Summary collapse
-
#add_list_member(list, user) ⇒ Boolean
included
from X::Objects::Actions::Lists
Add a member to a list as the authenticated user.
-
#block(user) ⇒ Boolean
included
from X::Objects::Actions::Relationships
Block a user as the authenticated user.
-
#bookmark(post) ⇒ Boolean
included
from X::Objects::Actions::Engagement
Bookmark a post as the authenticated user.
-
#count_all_posts(query, **params) ⇒ Integer
(also: #count_all_tweets)
included
from Lookups::Posts
Count the posts from the full archive that match a query, without reading them.
-
#count_all_posts_by_period(query, **params) ⇒ Hash{Range<Time> => Integer}
(also: #count_all_tweets_by_period)
included
from Lookups::Posts
Count the posts from the full archive that match a query, by period.
-
#count_posts(query, **params) ⇒ Integer
(also: #count_tweets)
included
from Lookups::Posts
Count the recent posts that match a query, without reading them.
-
#count_posts_by_period(query, **params) ⇒ Hash{Range<Time> => Integer}
(also: #count_tweets_by_period)
included
from Lookups::Posts
Count the posts from the last seven days that match a query, by period.
-
#create_direct_message(user, text = nil, **params) ⇒ DirectMessage
(also: #create_dm)
included
from X::Objects::Actions::DirectMessages
Send a direct message to a user as the authenticated user.
-
#create_direct_message_in(conversation, text = nil, **params) ⇒ DirectMessage
(also: #create_dm_in)
included
from X::Objects::Actions::DirectMessages
Send a direct message to a conversation as the authenticated user.
-
#create_group_direct_message(users, text = nil, **params) ⇒ DirectMessage
(also: #create_group_dm)
included
from X::Objects::Actions::DirectMessages
Start a group conversation, sending its first message as the authenticated user.
-
#create_list(name, **params) ⇒ List
included
from X::Objects::Actions::Lists
Create a list owned by the authenticated user.
-
#create_post(text = nil, **params) ⇒ Post
(also: #create_tweet)
included
from X::Objects::Actions::Posts
Create a post as the authenticated user.
-
#current_user(**params) {|problem| ... } ⇒ User?
included
from Lookups::Users
Look up the authenticated user.
-
#current_user!(**params) ⇒ User
included
from Lookups::Users
Look up the authenticated user, who must be found.
-
#current_user_id ⇒ Integer
included
from Lookups::Users
The identifier of the authenticated user, from an OAuth 1.0a token if possible.
-
#delete_direct_message(message) ⇒ Boolean
(also: #delete_dm)
included
from X::Objects::Actions::DirectMessages
Delete a direct message event as the authenticated user.
-
#delete_list(list) ⇒ Boolean
included
from X::Objects::Actions::Lists
Delete a list as the authenticated user.
-
#delete_post(post) ⇒ Boolean
(also: #delete_tweet)
included
from X::Objects::Actions::Posts
Delete a post as the authenticated user.
-
#direct_messages(**params) ⇒ Cursor
(also: #dms)
included
from Lookups::DirectMessages
The most recent direct message events across every conversation.
-
#direct_messages_in(conversation, **params) ⇒ Cursor
(also: #dms_in)
included
from Lookups::DirectMessages
The direct message events of a conversation, one-to-one or group.
-
#direct_messages_with(user, **params) ⇒ Cursor
(also: #dms_with)
included
from Lookups::DirectMessages
The direct message events in the one-to-one conversation with a user.
-
#find_all_media(media, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<X::Media>
included
from Lookups::Media
Look up media by media key, in parallel batches.
-
#find_all_posts(ids, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<Post>
(also: #find_all_tweets)
included
from Lookups::Posts
Look up many posts by identifier, in parallel batches.
-
#find_all_spaces(ids, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<Space>
included
from Lookups::Spaces
Look up many spaces by identifier, in parallel batches.
-
#find_all_spaces_by_creator(users, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<Space>
included
from Lookups::Spaces
Look up the live and scheduled spaces many users created, in parallel batches.
-
#find_all_users(ids_or_usernames, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<User>
included
from Lookups::Users
Look up many users by identifier or username, in parallel batches.
-
#find_all_users_by_id(ids, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<User>
included
from Lookups::Users
Look up many users by identifier, in parallel batches.
-
#find_all_users_by_username(usernames, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<User>
included
from Lookups::Users
Look up many users by username, in parallel batches.
-
#find_community(id, **params) {|problem| ... } ⇒ Community?
included
from Lookups::Communities
Look up a community by identifier.
-
#find_community!(id, **params) ⇒ Community
included
from Lookups::Communities
Look up a community by identifier, which must exist.
-
#find_direct_message(id, **params) {|problem| ... } ⇒ DirectMessage?
(also: #find_dm)
included
from Lookups::DirectMessages
Look up a direct message event by identifier.
-
#find_direct_message!(id, **params) ⇒ DirectMessage
(also: #find_dm!)
included
from Lookups::DirectMessages
Look up a direct message event by identifier, which must exist.
-
#find_list(id, **params) {|problem| ... } ⇒ List?
included
from Lookups::Lists
Look up a list by identifier.
-
#find_list!(id, **params) ⇒ List
included
from Lookups::Lists
Look up a list by identifier, which must exist.
-
#find_media(media_key, **params) {|problem| ... } ⇒ X::Media?
included
from Lookups::Media
Look up media by media key.
-
#find_media!(media_key, **params) ⇒ X::Media
included
from Lookups::Media
Look up media by media key, raising if it is not found.
-
#find_post(id, **params) {|problem| ... } ⇒ Post?
(also: #find_tweet)
included
from Lookups::Posts
Look up a post by identifier.
-
#find_post!(id, **params) ⇒ Post
(also: #find_tweet!)
included
from Lookups::Posts
Look up a post by identifier, which must exist.
-
#find_space(id, **params) {|problem| ... } ⇒ Space?
included
from Lookups::Spaces
Look up a space by identifier.
-
#find_space!(id, **params) ⇒ Space
included
from Lookups::Spaces
Look up a space by identifier, which must exist.
-
#find_user(id_or_username, **params) {|problem| ... } ⇒ User?
included
from Lookups::Users
Look up a user by identifier or username.
-
#find_user!(id_or_username, **params) ⇒ User
included
from Lookups::Users
Look up a user by identifier or username, which must exist.
-
#find_user_by_id(id, **params) {|problem| ... } ⇒ User?
included
from Lookups::Users
Look up a user by identifier.
-
#find_user_by_id!(id, **params) ⇒ User
included
from Lookups::Users
Look up a user by identifier, which must exist.
-
#find_user_by_username(username, **params) {|problem| ... } ⇒ User?
included
from Lookups::Users
Look up a user by username.
-
#find_user_by_username!(username, **params) ⇒ User
included
from Lookups::Users
Look up a user by username, which must exist.
-
#follow(user) ⇒ Boolean
included
from X::Objects::Actions::Relationships
Follow a user as the authenticated user.
-
#follow_list(list) ⇒ Boolean
included
from X::Objects::Actions::Lists
Follow a list as the authenticated user.
-
#hide_reply(post) ⇒ Boolean
included
from X::Objects::Actions::Posts
Hide a reply to a post of the authenticated user.
-
#like(post) ⇒ Boolean
included
from X::Objects::Actions::Engagement
Like a post as the authenticated user.
-
#mute(user) ⇒ Boolean
included
from X::Objects::Actions::Relationships
Mute a user as the authenticated user.
-
#personalized_trends(**params) ⇒ Array<PersonalizedTrend>
included
from Lookups::Trends
The topics trending for the authenticated user.
-
#pin_list(list) ⇒ Boolean
included
from X::Objects::Actions::Lists
Pin a list as the authenticated user.
-
#post_usage(**params) {|problem| ... } ⇒ PostUsage?
included
from Lookups::Posts
Look up how many posts the app's project has read.
-
#post_usage!(**params) ⇒ PostUsage
included
from Lookups::Posts
Look up how many posts the app's project has read, which must be returned.
-
#remove_list_member(list, user) ⇒ Boolean
included
from X::Objects::Actions::Lists
Remove a member from a list as the authenticated user.
-
#repost(post) ⇒ Boolean
(also: #retweet)
included
from X::Objects::Actions::Engagement
Repost a post as the authenticated user.
-
#reposts_of_me(**params) ⇒ Cursor
(also: #retweets_of_me)
included
from Lookups::Posts
The posts of the authenticated user that other users have reposted.
-
#search_all_posts(query, **params) ⇒ Cursor
(also: #search_all_tweets)
included
from Lookups::Posts
Search the full archive of posts.
-
#search_communities(query, **params) ⇒ Cursor
included
from Lookups::Communities
Search communities.
-
#search_posts(query, **params) ⇒ Cursor
(also: #search_tweets)
included
from Lookups::Posts
Search recent posts.
-
#search_spaces(query, **params) ⇒ Cursor
included
from Lookups::Spaces
Search spaces by their titles.
-
#search_users(query, **params) ⇒ Cursor
included
from Lookups::Users
Search users.
-
#trends(woeid, **params) ⇒ Array<Trend>
included
from Lookups::Trends
The topics trending in a place.
-
#unblock(user) ⇒ Boolean
included
from X::Objects::Actions::Relationships
Unblock a user as the authenticated user.
-
#unbookmark(post) ⇒ Boolean
included
from X::Objects::Actions::Engagement
Remove a bookmark as the authenticated user.
-
#unfollow(user) ⇒ Boolean
included
from X::Objects::Actions::Relationships
Unfollow a user as the authenticated user.
-
#unfollow_list(list) ⇒ Boolean
included
from X::Objects::Actions::Lists
Unfollow a list as the authenticated user.
-
#unhide_reply(post) ⇒ Boolean
included
from X::Objects::Actions::Posts
Show a reply to a post of the authenticated user after hiding it.
-
#unlike(post) ⇒ Boolean
included
from X::Objects::Actions::Engagement
Unlike a post as the authenticated user.
-
#unmute(user) ⇒ Boolean
included
from X::Objects::Actions::Relationships
Unmute a user as the authenticated user.
-
#unpin_list(list) ⇒ Boolean
included
from X::Objects::Actions::Lists
Unpin a list as the authenticated user.
-
#unrepost(post) ⇒ Boolean
(also: #unretweet)
included
from X::Objects::Actions::Engagement
Undo a repost as the authenticated user.
-
#update_list(list, **params) ⇒ Boolean
included
from X::Objects::Actions::Lists
Update the name, description, or privacy of a list as the authenticated user.
Instance Method Details
#add_list_member(list, user) ⇒ Boolean Originally defined in module X::Objects::Actions::Lists
Add a member to a list as the authenticated user
#block(user) ⇒ Boolean Originally defined in module X::Objects::Actions::Relationships
Block a user as the authenticated user
#bookmark(post) ⇒ Boolean Originally defined in module X::Objects::Actions::Engagement
Bookmark a post as the authenticated user
The bookmark endpoints take only OAuth 2.0 user context, which the object layer cannot route around, so a client that signs with OAuth 1.0a is refused.
#count_all_posts(query, **params) ⇒ Integer Also known as: count_all_tweets Originally defined in module Lookups::Posts
Count the posts from the full archive that match a query, without reading them
The API bills a count by the request, not by the post, and refuses OAuth 1.0a for it, so a client that signs with OAuth 1.0a counts with a copy that authenticates as the app. A client signed in with OAuth 2.0 as a user that holds no credentials of the app counts as the user, which the full archive refuses with X::Forbidden.
#count_all_posts_by_period(query, **params) ⇒ Hash{Range<Time> => Integer} Also known as: count_all_tweets_by_period Originally defined in module Lookups::Posts
Count the posts from the full archive that match a query, by period
The API bills a count by the request, not by the post, and refuses OAuth 1.0a for it, so a client that signs with OAuth 1.0a counts with a copy that authenticates as the app. A client signed in with OAuth 2.0 as a user that holds no credentials of the app counts as the user, which the full archive refuses with X::Forbidden.
#count_posts(query, **params) ⇒ Integer Also known as: count_tweets Originally defined in module Lookups::Posts
Count the recent posts that match a query, without reading them
The API bills a count by the request, not by the post, and refuses OAuth 1.0a for it, so a client that signs with OAuth 1.0a counts with a copy that authenticates as the app.
#count_posts_by_period(query, **params) ⇒ Hash{Range<Time> => Integer} Also known as: count_tweets_by_period Originally defined in module Lookups::Posts
Count the posts from the last seven days that match a query, by period
The API bills a count by the request, not by the post, and refuses OAuth 1.0a for it, so a client that signs with OAuth 1.0a counts with a copy that authenticates as the app.
#create_direct_message(user, text = nil, **params) ⇒ DirectMessage Also known as: create_dm Originally defined in module X::Objects::Actions::DirectMessages
Send a direct message to a user as the authenticated user
#create_direct_message_in(conversation, text = nil, **params) ⇒ DirectMessage Also known as: create_dm_in Originally defined in module X::Objects::Actions::DirectMessages
Send a direct message to a conversation as the authenticated user
The conversation can be one-to-one or a group.
#create_group_direct_message(users, text = nil, **params) ⇒ DirectMessage Also known as: create_group_dm Originally defined in module X::Objects::Actions::DirectMessages
Start a group conversation, sending its first message as the authenticated user
#create_list(name, **params) ⇒ List Originally defined in module X::Objects::Actions::Lists
Create a list owned by the authenticated user
#create_post(text = nil, **params) ⇒ Post Also known as: create_tweet Originally defined in module X::Objects::Actions::Posts
Create a post as the authenticated user
The API bills each post created, and bills a post whose text holds a URL more than ten times as much. A post needs no text when it has something else to show, such as media.
#current_user(**params) {|problem| ... } ⇒ User? Originally defined in module Lookups::Users
Look up the authenticated user
Each call looks the user up, as X::User.current does, so its counts and profile are as they are now. Keep the user it returns to read them again without a request.
#current_user!(**params) ⇒ User Originally defined in module Lookups::Users
Look up the authenticated user, who must be found
Each call looks the user up, as X::User.current! does, so its counts and profile are as they are now. Keep the user it returns to read them again without a request.
#current_user_id ⇒ Integer Originally defined in module Lookups::Users
The identifier of the authenticated user, from an OAuth 1.0a token if possible
An OAuth 1.0a access token begins with the identifier of its user, so a client that holds one needs no lookup. Any other client looks the user up the first time, unless current_user or current_user! already has, and keeps the identifier, which never changes, for as long as it holds the same authenticator, since a client whose credentials change authenticates as someone else. A frozen client keeps nothing, and looks the user up each time.
#delete_direct_message(message) ⇒ Boolean Also known as: delete_dm Originally defined in module X::Objects::Actions::DirectMessages
Delete a direct message event as the authenticated user
#delete_list(list) ⇒ Boolean Originally defined in module X::Objects::Actions::Lists
Delete a list as the authenticated user
#delete_post(post) ⇒ Boolean Also known as: delete_tweet Originally defined in module X::Objects::Actions::Posts
Delete a post as the authenticated user
#direct_messages(**params) ⇒ Cursor Also known as: dms Originally defined in module Lookups::DirectMessages
The most recent direct message events across every conversation
#direct_messages_in(conversation, **params) ⇒ Cursor Also known as: dms_in Originally defined in module Lookups::DirectMessages
The direct message events of a conversation, one-to-one or group
#direct_messages_with(user, **params) ⇒ Cursor Also known as: dms_with Originally defined in module Lookups::DirectMessages
The direct message events in the one-to-one conversation with a user
#find_all_media(media, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<X::Media> Originally defined in module Lookups::Media
Look up media by media key, in parallel batches
#find_all_posts(ids, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<Post> Also known as: find_all_tweets Originally defined in module Lookups::Posts
Look up many posts by identifier, in parallel batches
#find_all_spaces(ids, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<Space> Originally defined in module Lookups::Spaces
Look up many spaces by identifier, in parallel batches
#find_all_spaces_by_creator(users, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<Space> Originally defined in module Lookups::Spaces
Look up the live and scheduled spaces many users created, in parallel batches
#find_all_users(ids_or_usernames, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<User> Originally defined in module Lookups::Users
Look up many users by identifier or username, in parallel batches
#find_all_users_by_id(ids, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<User> Originally defined in module Lookups::Users
Look up many users by identifier, in parallel batches
A String of digits is an identifier, as it is read from a response or an environment variable, so this looks the accounts those numbers identify up, where find_all_users would take them for usernames.
#find_all_users_by_username(usernames, concurrency: BatchFinders::DEFAULT_CONCURRENCY, **params) {|problem| ... } ⇒ Array<User> Originally defined in module Lookups::Users
Look up many users by username, in parallel batches
It looks every value up as a username, Strings of digits as the accounts whose handles are those numbers, as find_all_users looks up any String, so code that reads values from elsewhere says which it means, as find_all_users_by_id does.
#find_community(id, **params) {|problem| ... } ⇒ Community? Originally defined in module Lookups::Communities
Look up a community by identifier
#find_community!(id, **params) ⇒ Community Originally defined in module Lookups::Communities
Look up a community by identifier, which must exist
#find_direct_message(id, **params) {|problem| ... } ⇒ DirectMessage? Also known as: find_dm Originally defined in module Lookups::DirectMessages
Look up a direct message event by identifier
#find_direct_message!(id, **params) ⇒ DirectMessage Also known as: find_dm! Originally defined in module Lookups::DirectMessages
Look up a direct message event by identifier, which must exist
#find_list(id, **params) {|problem| ... } ⇒ List? Originally defined in module Lookups::Lists
Look up a list by identifier
#find_list!(id, **params) ⇒ List Originally defined in module Lookups::Lists
Look up a list by identifier, which must exist
#find_media(media_key, **params) {|problem| ... } ⇒ X::Media? Originally defined in module Lookups::Media
Look up media by media key
A post refers to its media by media key, and so does what an upload returns, so this reads the photo, video, or animated GIF that was uploaded, with its URL and variants.
#find_media!(media_key, **params) ⇒ X::Media Originally defined in module Lookups::Media
Look up media by media key, raising if it is not found
#find_post(id, **params) {|problem| ... } ⇒ Post? Also known as: find_tweet Originally defined in module Lookups::Posts
Look up a post by identifier
#find_post!(id, **params) ⇒ Post Also known as: find_tweet! Originally defined in module Lookups::Posts
Look up a post by identifier, which must exist
#find_space(id, **params) {|problem| ... } ⇒ Space? Originally defined in module Lookups::Spaces
Look up a space by identifier
#find_space!(id, **params) ⇒ Space Originally defined in module Lookups::Spaces
Look up a space by identifier, which must exist
#find_user(id_or_username, **params) {|problem| ... } ⇒ User? Originally defined in module Lookups::Users
Look up a user by identifier or username
#find_user!(id_or_username, **params) ⇒ User Originally defined in module Lookups::Users
Look up a user by identifier or username, which must exist
#find_user_by_id(id, **params) {|problem| ... } ⇒ User? Originally defined in module Lookups::Users
Look up a user by identifier
A String of digits is an identifier, as it is read from a response or an environment variable, so this looks the account that number identifies up, where find_user would take it for a username.
#find_user_by_id!(id, **params) ⇒ User Originally defined in module Lookups::Users
Look up a user by identifier, which must exist
#find_user_by_username(username, **params) {|problem| ... } ⇒ User? Originally defined in module Lookups::Users
Look up a user by username
It looks every value up as a username, a String of digits as the account whose handle is that number, as find_user looks up any String, so code that reads a value from elsewhere says which it means, as find_user_by_id does.
#find_user_by_username!(username, **params) ⇒ User Originally defined in module Lookups::Users
Look up a user by username, which must exist
#follow(user) ⇒ Boolean Originally defined in module X::Objects::Actions::Relationships
Follow a user as the authenticated user
A protected user must accept a request to follow them first, so for a protected user true means the follow was requested, not that the authenticated user follows them: until they accept it, the follows? of the authenticated user, as in client.current_user!.follows?(user), answers false.
#follow_list(list) ⇒ Boolean Originally defined in module X::Objects::Actions::Lists
Follow a list as the authenticated user
#hide_reply(post) ⇒ Boolean Originally defined in module X::Objects::Actions::Posts
Hide a reply to a post of the authenticated user
#like(post) ⇒ Boolean Originally defined in module X::Objects::Actions::Engagement
Like a post as the authenticated user
#mute(user) ⇒ Boolean Originally defined in module X::Objects::Actions::Relationships
Mute a user as the authenticated user
#personalized_trends(**params) ⇒ Array<PersonalizedTrend> Originally defined in module Lookups::Trends
The topics trending for the authenticated user
#pin_list(list) ⇒ Boolean Originally defined in module X::Objects::Actions::Lists
Pin a list as the authenticated user
#post_usage(**params) {|problem| ... } ⇒ PostUsage? Originally defined in module Lookups::Posts
Look up how many posts the app's project has read
The usage endpoint takes app-only authentication alone, so a client that signs with OAuth 1.0a looks it up with a copy that authenticates as the app, and one signed in with OAuth 2.0 as a user that holds no credentials of the app is refused with X::Forbidden.
A response that holds no usage returns nil, as current_user does for a users/me that holds no user, and passes the problems it reported to the block, if there is one.
#post_usage!(**params) ⇒ PostUsage Originally defined in module Lookups::Posts
Look up how many posts the app's project has read, which must be returned
#remove_list_member(list, user) ⇒ Boolean Originally defined in module X::Objects::Actions::Lists
Remove a member from a list as the authenticated user
#repost(post) ⇒ Boolean Also known as: retweet Originally defined in module X::Objects::Actions::Engagement
Repost a post as the authenticated user
#reposts_of_me(**params) ⇒ Cursor Also known as: retweets_of_me Originally defined in module Lookups::Posts
The posts of the authenticated user that other users have reposted
#search_all_posts(query, **params) ⇒ Cursor Also known as: search_all_tweets Originally defined in module Lookups::Posts
Search the full archive of posts
#search_communities(query, **params) ⇒ Cursor Originally defined in module Lookups::Communities
Search communities
#search_posts(query, **params) ⇒ Cursor Also known as: search_tweets Originally defined in module Lookups::Posts
Search recent posts
#search_spaces(query, **params) ⇒ Cursor Originally defined in module Lookups::Spaces
Search spaces by their titles
#search_users(query, **params) ⇒ Cursor Originally defined in module Lookups::Users
Search users
#trends(woeid, **params) ⇒ Array<Trend> Originally defined in module Lookups::Trends
The topics trending in a place
#unblock(user) ⇒ Boolean Originally defined in module X::Objects::Actions::Relationships
Unblock a user as the authenticated user
#unbookmark(post) ⇒ Boolean Originally defined in module X::Objects::Actions::Engagement
Remove a bookmark as the authenticated user
The bookmark endpoints take only OAuth 2.0 user context, which the object layer cannot route around, so a client that signs with OAuth 1.0a is refused.
#unfollow(user) ⇒ Boolean Originally defined in module X::Objects::Actions::Relationships
Unfollow a user as the authenticated user
#unfollow_list(list) ⇒ Boolean Originally defined in module X::Objects::Actions::Lists
Unfollow a list as the authenticated user
#unhide_reply(post) ⇒ Boolean Originally defined in module X::Objects::Actions::Posts
Show a reply to a post of the authenticated user after hiding it
#unlike(post) ⇒ Boolean Originally defined in module X::Objects::Actions::Engagement
Unlike a post as the authenticated user
#unmute(user) ⇒ Boolean Originally defined in module X::Objects::Actions::Relationships
Unmute a user as the authenticated user
#unpin_list(list) ⇒ Boolean Originally defined in module X::Objects::Actions::Lists
Unpin a list as the authenticated user
#unrepost(post) ⇒ Boolean Also known as: unretweet Originally defined in module X::Objects::Actions::Engagement
Undo a repost as the authenticated user
#update_list(list, **params) ⇒ Boolean Originally defined in module X::Objects::Actions::Lists
Update the name, description, or privacy of a list as the authenticated user