-
Notifications
You must be signed in to change notification settings - Fork 26
blockUser(sourceUserId_targetUserId_)
daneden edited this page Apr 3, 2022
·
5 revisions
Causes the source user to block the target user. The source user ID must match the currently authenticated user ID.
public func blockUser(sourceUserId: User.ID, targetUserId: User.ID)
Equivalent to POST /2/users/:id/blocking
- sourceUserId: The user ID who you would like to initiate the block on behalf of. It must match the user ID of the currently authenticated user.
- targetUserId: The user ID of the user you would like the source user to block.
A BlockResponse
indicating the blocked status.
Generated at 2022-11-07T15:07:20+0000 using swift-doc 1.0.0-rc.1.
Types
- BlockResponse
- BookmarkResponse
- CreatedListResponse
- DeleteResponse
- ErrorDetail
- FilteredStreamRule
- FilteredStreamRuleMeta
- FilteredStreamRuleMeta.Summary
- FollowResponse
- Geo
- Geo.Coordinates
- GeoJSON
- GeoJSONType
- HiddenResponse
- LikeResponse
- List
- List.Expansions
- List.Includes
- ListMembershipResponse
- Media
- Media.Metrics
- Media.PublicMetrics
- Media.Variant
- MediaCategory
- MediaType
- MediaUploadResponse
- MediaUploadResponse.MediaProcessingInfo
- MediaUploadResponse.MediaProcessingInfo.ProcessingError
- MediaUploadResponse.MediaProcessingInfo.State
- MentionEntity
- Meta
- MutableFilteredStreamRule
- MutableMedia
- MutablePoll
- MutableTweet
- MutableTweet.Reply
- MuteResponse
- OAuth2Scope
- OAuth2User
- OAuthCredentials
- PinnedResponse
- Place
- Poll
- Poll.Option
- Poll.VotingStatus
- PostTweetResponse
- RetweetResponse
- SearchSpacesState
- Space
- Space.Expansions
- Space.Includes
- TagEntity
- Topic
- Topic.Field
- Tweet
- Tweet.AnnotationEntity
- Tweet.Attachments
- Tweet.Entities
- Tweet.Expansions
- Tweet.Includes
- Tweet.NonPublicMetrics
- Tweet.OrganicMetrics
- Tweet.PromotedMetrics
- Tweet.PublicMetrics
- Tweet.ReferencedTweet
- Tweet.ReferencedTweet.ReferenceType
- Tweet.ReplyAudience
- Tweet.URLEntity
- TweetExclusion
- Twift.Authentication
- Twift.AuthenticationType
- Twift.AuthenticationTypeRepresentation
- TwiftError
- TwitterAPIData
- TwitterAPIDataAndIncludes
- TwitterAPIDataAndMeta
- TwitterAPIDataIncludesAndMeta
- TwitterAPIError
- UpdatedListResponse
- User
- User.DescriptionEntity
- User.Entities
- User.Expansions
- User.Includes
- User.URLEntity
- User.URLEntityDetails
- User.UserProfileMetrics
- WithheldInformation
- WithheldInformation.Scope
Global Variables
Global Functions
- addAltText(to:text:)
- addBookmark(_:userId:)
- addListMember(_:to:)
- authenticateUser(clientId:redirectUri:scope:presentationContextProvider:)
- blockUser(sourceUserId:targetUserId:)
- checkMediaUploadSuccessful(_:)
- createList(name:description:isPrivate:)
- deleteBookmark(_:userId:)
- deleteList(_:)
- deleteListMember(_:from:)
- deleteTweet(_:)
- filteredStream(fields:expansions:backfillMinutes:)
- followList(_:userId:)
- followUser(sourceUserId:targetUserId:)
- getBlockedUsers(for:fields:expansions:paginationToken:maxResults:)
- getBookmarks(for:fields:expansions:paginationToken:maxResults:)
- getFilteredStreamRules(ids:)
- getFollowedLists(_:fields:expansions:paginationToken:maxResults:)
- getFollowers(_:fields:expansions:paginationToken:maxResults:)
- getFollowing(_:fields:expansions:paginationToken:maxResults:)
- getLikedTweets(for:fields:expansions:paginationToken:maxResults:)
- getLikingUsers(for:fields:expansions:paginationToken:maxResults:)
- getList(_:fields:expansions:)
- getListFollowers(_:fields:expansions:paginationToken:maxResults:)
- getListMembers(for:fields:expansions:paginationToken:maxResults:)
- getListMemberships(for:fields:expansions:paginationToken:maxResults:)
- getListTweets(_:fields:expansions:paginationToken:maxResults:)
- getMe(fields:expansions:)
- getMutedUsers(for:fields:expansions:paginationToken:maxResults:)
- getPinnedLists(_:fields:expansions:)
- getSpace(_:fields:expansions:)
- getSpaceBuyers(_:fields:expansions:)
- getSpaceTweets(_:fields:expansions:)
- getSpaces(_:fields:expansions:)
- getSpacesByCreatorIds(_:fields:expansions:)
- getTweet(_:fields:expansions:)
- getTweets(_:fields:expansions:)
- getUser(_:fields:expansions:)
- getUserBy(username:fields:expansions:)
- getUserOwnedLists(_:fields:expansions:paginationToken:maxResults:)
- getUsers(_:fields:expansions:)
- getUsersBy(usernames:fields:expansions:)
- hideReply(_:)
- likeTweet(_:userId:)
- modifyFilteredStreamRules(add:delete:dryRun:)
- muteUser(sourceUserId:targetUserId:)
- pinList(_:userId:)
- postTweet(_:)
- quoteTweets(for:fields:expansions:paginationToken:maxResults:)
- refreshOAuth2AccessToken(onlyIfExpired:)
- retweet(_:userId:)
- retweets(for:fields:expansions:paginationToken:maxResults:)
- reverseChronologicalTimeline(_:fields:expansions:startTime:endTime:exclude:sinceId:untilId:paginationToken:maxResults:)
- searchAllTweets(query:fields:expansions:endTime:startTime:maxResults:nextToken:sinceId:untilId:)
- searchRecentTweets(query:fields:expansions:endTime:startTime:maxResults:nextToken:sinceId:untilId:)
- searchSpaces(query:fields:expansions:state:)
- unblockUser(sourceUserId:targetUserId:)
- unfollowList(_:userId:)
- unfollowUser(sourceUserId:targetUserId:)
- unhideReply(_:)
- unlikeTweet(_:userId:)
- unmuteUser(sourceUserId:targetUserId:)
- unpinList(_:userId:)
- unretweet(_:userId:)
- updateList(id:name:description:isPrivate:)
- upload(mediaData:mimeType:category:progress:)
- userMentions(_:fields:expansions:startTime:endTime:exclude:sinceId:untilId:paginationToken:maxResults:)
- userTimeline(_:startTime:endTime:exclude:sinceId:untilId:fields:expansions:paginationToken:maxResults:)
- volumeStream(fields:expansions:backfillMinutes:)