You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Twift+Blocks.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ extension Twift {
45
45
///
46
46
/// Equivalent to `POST /2/users/:id/blocking`
47
47
/// - Parameters:
48
-
/// - 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.
48
+
/// - 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. When set to `nil`, this method will try to use the currently-authenticated user's ID.
49
49
/// - targetUserId: The user ID of the user you would like the source user to block.
50
50
/// - Returns: A ``BlockResponse`` indicating the blocked status.
Copy file name to clipboardExpand all lines: Sources/Twift+Follows.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ extension Twift {
14
14
///
15
15
/// Equivalent to `GET /2/users/:id/following`.
16
16
/// - Parameters:
17
-
/// - userId: The user ID whose following you would like to retreive.
17
+
/// - userId: The user ID whose following you would like to retreive. When set to `nil`, this method will try to use the currently-authenticated user's ID.
18
18
/// - fields: Any additional fields to include on returned objects
19
19
/// - expansions: Objects and their corresponding fields that should be expanded in the `includes` property
20
20
/// - paginationToken: When iterating over pages of results, you can pass in the `nextToken` from the previously-returned value to get the next page of results
@@ -51,7 +51,7 @@ extension Twift {
51
51
///
52
52
/// Equivalent to `GET /2/users/:id/followers`.
53
53
/// - Parameters:
54
-
/// - userId: The user ID whose followers you would like to retrieve
54
+
/// - userId: The user ID whose followers you would like to retrieve. When set to `nil`, this method will try to use the currently-authenticated user's ID.
55
55
/// - fields: Any additional fields to include on returned objects
56
56
/// - expansions: Objects and their corresponding fields that should be expanded in the `includes` property
57
57
/// - paginationToken: When iterating over pages of results, you can pass in the `nextToken` from the previously-returned value to get the next page of results
@@ -93,7 +93,7 @@ extension Twift {
93
93
///
94
94
/// The request succeeds with no action when the authenticated user sends a request to a user they're already following, or if they're sending a follower request to a user that does not have public Tweets.
95
95
/// - Parameters:
96
-
/// - sourceUserId: The authenticated user ID who you would like to initiate the follow on behalf of.
96
+
/// - sourceUserId: The authenticated user ID who you would like to initiate the follow on behalf of. When set to `nil`, this method will try to use the currently-authenticated user's ID.
97
97
/// - targetUserId: The user ID of the user that you would like the `sourceUserId` to follow.
98
98
/// - Returns: A ``FollowResponse`` indicating whether the source user is now following the target user, and whether the follow request is pending
99
99
publicfunc followUser(
@@ -115,7 +115,7 @@ extension Twift {
115
115
///
116
116
/// The request succeeds with no action when the authenticated user sends a request to a user they're not following or have already unfollowed.
117
117
/// - Parameters:
118
-
/// - sourceUserId: The authenticated user ID who you would like to initiate the unfollow on behalf of.
118
+
/// - sourceUserId: The authenticated user ID who you would like to initiate the unfollow on behalf of. When set to `nil`, this method will try to use the currently-authenticated user's ID.
119
119
/// - targetUserId: The user ID of the user that you would like the `sourceUserId` to unfollow.
120
120
/// - Returns: A ``FollowResponse`` indicating whether the source user is now following the target user
Copy file name to clipboardExpand all lines: Sources/Twift+Likes.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ extension Twift {
6
6
/// Equivalent to `POST /2/users/:user_id/likes`
7
7
/// - Parameters:
8
8
/// - tweetId: The ID of the Tweet that you would like the `userId` to Like.
9
-
/// - userId: The user ID who you are liking a Tweet on behalf of. It must match your own user ID or that of an authenticating user.
9
+
/// - userId: The user ID who you are liking a Tweet on behalf of. It must match your own user ID or that of an authenticating user. When set to `nil`, this method will try to use the currently-authenticated user's ID.
10
10
/// - Returns: A response object containing a ``LikeResponse``
/// Equivalent to `DELETE /2/users/:user_id/likes/:tweet_id`
26
26
/// - Parameters:
27
27
/// - tweetId: The ID of the Tweet that you would like the `userId` to unlike.
28
-
/// - userId: The user ID who you are removing Like of a Tweet on behalf of. It must match your own user ID or that of an authenticating user.
28
+
/// - userId: The user ID who you are removing Like of a Tweet on behalf of. It must match your own user ID or that of an authenticating user. When set to `nil`, this method will try to use the currently-authenticated user's ID.
29
29
/// - Returns: A response object containing a ``LikeResponse``
/// - userId: User ID of the user to request liked Tweets for.
62
+
/// - userId: User ID of the user to request liked Tweets for. When set to `nil`, this method will try to use the currently-authenticated user's ID.
63
63
/// - fields: Any additional fields to include on returned objects
64
64
/// - expansions: Objects and their corresponding fields that should be expanded in the `includes` property
65
65
/// - paginationToken: This parameter is used to move forwards or backwards through 'pages' of results, based on the value of the next_token or previous_token in the response.
Copy file name to clipboardExpand all lines: Sources/Twift+Lists.swift
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ extension Twift {
62
62
///
63
63
/// Equivalent to `GET /2/user/:user_id/owned_lists`
64
64
/// - Parameters:
65
-
/// - userId: The user ID whose owned Lists you would like to retrieve.
65
+
/// - userId: The user ID whose owned Lists you would like to retrieve. When set to `nil`, this method will try to use the currently-authenticated user's ID.
66
66
/// - fields: Any additional fields to include on returned objects
67
67
/// - expansions: Objects and their corresponding fields that should be expanded in the `includes` property
68
68
/// - paginationToken: When iterating over pages of results, you can pass in the `nextToken` from the previously-returned value to get the next page of results
@@ -112,7 +112,7 @@ extension Twift {
112
112
///
113
113
/// Equivalent to `GET /2/user/:user_id/list_memberships`
114
114
/// - Parameters:
115
-
/// - userId: The user ID whose List memberships you would like to retrieve
115
+
/// - userId: The user ID whose List memberships you would like to retrieve. When set to `nil`, this method will try to use the currently-authenticated user's ID.
116
116
/// - fields: Any additional fields to include on returned objects
117
117
/// - expansions: Objects and their corresponding fields that should be expanded in the `includes` property
118
118
/// - paginationToken: When iterating over pages of results, you can pass in the `nextToken` from the previously-returned value to get the next page of results
@@ -218,7 +218,7 @@ extension Twift {
218
218
/// Enables the authenticated user to unfollow a List.
219
219
/// - Parameters:
220
220
/// - listId: The ID of the List that you would like the user id to unfollow.
221
-
/// - userId: The user ID who you are unfollowing a List on behalf of. It must match your own user ID or that of an authenticating user
221
+
/// - userId: The user ID who you are unfollowing a List on behalf of. It must match your own user ID or that of an authenticating user. When set to `nil`, this method will try to use the currently-authenticated user's ID.
222
222
/// - Returns: A response object containing the result of the unfollow request
/// Enables the authenticated user to follow a List.
232
232
/// - Parameters:
233
233
/// - listId: The ID of the List that you would like the user id to follow.
234
-
/// - userId: The user ID who you are following a List on behalf of. It must match your own user ID or that of an authenticating user
234
+
/// - userId: The user ID who you are following a List on behalf of. It must match your own user ID or that of an authenticating user. When set to `nil`, this method will try to use the currently-authenticated user's ID.
235
235
/// - Returns: A response object containing the result of the follow request
/// - userId: The user ID whose followed Lists you would like to retrieve.
280
+
/// - userId: The user ID whose followed Lists you would like to retrieve. When set to `nil`, this method will try to use the currently-authenticated user's ID.
281
281
/// - fields: Any additional fields to include on returned objects
282
282
/// - expansions: Objects and their corresponding fields that should be expanded in the `includes` property
283
283
/// - paginationToken: When iterating over pages of results, you can pass in the `nextToken` from the previously-returned value to get the next page of results
@@ -319,7 +319,7 @@ extension Twift {
319
319
/// Equivalent to `POST /2/users/:user_id/pinned_lists`
320
320
/// - Parameters:
321
321
/// - listId: The ID of the List that you would like the user id to pin.
322
-
/// - userId: The user ID who you are pinning a List on behalf of. It must match your own user ID or that of an authenticating user
322
+
/// - userId: The user ID who you are pinning a List on behalf of. It must match your own user ID or that of an authenticating user. When set to `nil`, this method will try to use the currently-authenticated user's ID.
323
323
/// - Returns: A response object containing the result of this pin list request
/// Equivalent to `DELETE /2/users/:user_id/pinned_lists/:list_id`
338
338
/// - Parameters:
339
339
/// - listId: The ID of the List that you would like the user id to unpin.
340
-
/// - userId: The user ID who you are unpinning a List on behalf of. It must match your own user ID or that of an authenticating user
340
+
/// - userId: The user ID who you are unpinning a List on behalf of. It must match your own user ID or that of an authenticating user. When set to `nil`, this method will try to use the currently-authenticated user's ID.
341
341
/// - Returns: A response object containing the result of this unpin list request
/// Returns all Lists a specified user has pinned.
351
351
/// - Parameters:
352
-
/// - userId: The user ID whose pinned Lists you would like to retrieve.
352
+
/// - userId: The user ID whose pinned Lists you would like to retrieve. When set to `nil`, this method will try to use the currently-authenticated user's ID.
353
353
/// - fields: Any additional fields to include on returned objects
354
354
/// - expansions: Objects and their corresponding fields that should be expanded in the `includes` property
355
355
/// - Returns: A response object containing an array of lists pinned by the user, any requested expansions, and a meta object with pagination information
Copy file name to clipboardExpand all lines: Sources/Twift+Mutes.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ extension Twift {
7
7
///
8
8
/// Equivalent to `GET /2/users/:id/muting`.
9
9
/// - Parameters:
10
-
/// - userId: The user ID whose muted users you would like to retrieve
10
+
/// - userId: The user ID whose muted users you would like to retrieve. When set to `nil`, this method will try to use the currently-authenticated user's ID.
11
11
/// - fields: Any additional fields to include on returned objects
12
12
/// - expansions: Objects and their corresponding fields that should be expanded in the `includes` property
13
13
/// - paginationToken: When iterating over pages of results, you can pass in the `nextToken` from the previously-returned value to get the next page of results
@@ -44,7 +44,7 @@ extension Twift {
44
44
///
45
45
/// Equivalent to `POST /2/users/:id/muting`
46
46
/// - Parameters:
47
-
/// - sourceUserId: The user ID who you would like to initiate the mute on behalf of. It must match the user ID of the currently authenticated user.
47
+
/// - sourceUserId: The user ID who you would like to initiate the mute on behalf of. It must match the user ID of the currently authenticated user. When set to `nil`, this method will try to use the currently-authenticated user's ID.
48
48
/// - targetUserId: The user ID of the user you would like the source user to mute.
49
49
/// - Returns: A ``MuteResponse`` indicating the muted status.
/// Equivalent to `DELETE /2/users/:source_user_id/muting/:target_user_id`
64
64
/// - Parameters:
65
-
/// - sourceUserId: The user ID who you would like to initiate the mute on behalf of. It must match the user ID of the currently authenticated user.
65
+
/// - sourceUserId: The user ID who you would like to initiate the mute on behalf of. It must match the user ID of the currently authenticated user. When set to `nil`, this method will try to use the currently-authenticated user's ID.
66
66
/// - targetUserId: The user ID of the user you would like the source user to mute.
67
67
/// - Returns: A ``MuteResponse`` indicating the muted status.
Copy file name to clipboardExpand all lines: Sources/Twift+Retweets.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ extension Twift {
6
6
/// Equivalent to `POST /2/users/:user_id/retweets`
7
7
/// - Parameters:
8
8
/// - tweetId: The ID of the Tweet that you would like the `userId` to Retweet.
9
-
/// - userId: The user ID who you are Retweeting a Tweet on behalf of. It must match your own user ID or that of an authenticating user.
9
+
/// - userId: The user ID who you are Retweeting a Tweet on behalf of. It must match your own user ID or that of an authenticating user. When set to `nil`, this method will try to use the currently-authenticated user's ID.
10
10
/// - Returns: A response object containing the result of the request
/// Equivalent to `DELETE /2/users/:user_id/retweets/:tweet_id`
26
26
/// - Parameters:
27
27
/// - tweetId: The ID of the Tweet that you would like the `userId` to remove the Retweet of.
28
-
/// - userId: The user ID who you are removing a the Retweet of a Tweet on behalf of. It must match your own user ID or that of an authenticating user.
28
+
/// - userId: The user ID who you are removing a the Retweet of a Tweet on behalf of. It must match your own user ID or that of an authenticating user. When set to `nil`, this method will try to use the currently-authenticated user's ID.
29
29
/// - Returns: A response object containing the result of the request
Copy file name to clipboardExpand all lines: Sources/Twift+Tweets.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ extension Twift {
46
46
///
47
47
/// Equivalent to `GET /2/users/:id/timeline`
48
48
/// - Parameters:
49
-
/// - userId: Unique identifier of the Twitter account (user ID) for whom to return results.
49
+
/// - userId: Unique identifier of the Twitter account (user ID) for whom to return results. When set to `nil`, this method will try to use the currently-authenticated user's ID.
50
50
/// - startTime: The oldest or earliest UTC timestamp from which the Tweets will be provided. Only the 3200 most recent Tweets are available. Timestamp is in second granularity and is inclusive (for example, 12:00:01 includes the first second of the minute). Minimum allowable time is 2010-11-06T00:00:00Z
51
51
/// - endTime: The newest or most recent UTC timestamp from which the Tweets will be provided. Only the 3200 most recent Tweets are available. Timestamp is in second granularity and is inclusive (for example, 12:00:01 includes the first second of the minute). Minimum allowable time is 2010-11-06T00:00:01Z
52
52
/// - exclude: Comma-separated list of the types of Tweets to exclude from the response. When exclude=retweets is used, the maximum historical Tweets returned is still 3200. When the exclude=replies parameter is used for any value, only the most recent 800 Tweets are available.
@@ -95,7 +95,7 @@ extension Twift {
95
95
///
96
96
/// Equivalent to `GET /2/users/:id/mentions`
97
97
/// - Parameters:
98
-
/// - userId: Unique identifier of the Twitter account (user ID) for whom to return results.
98
+
/// - userId: Unique identifier of the Twitter account (user ID) for whom to return results. When set to `nil`, this method will try to use the currently-authenticated user's ID.
99
99
/// - startTime: The oldest or earliest UTC timestamp from which the Tweets will be provided. Only the 3200 most recent Tweets are available. Timestamp is in second granularity and is inclusive (for example, 12:00:01 includes the first second of the minute). Minimum allowable time is 2010-11-06T00:00:00Z
100
100
/// - endTime: The newest or most recent UTC timestamp from which the Tweets will be provided. Only the 3200 most recent Tweets are available. Timestamp is in second granularity and is inclusive (for example, 12:00:01 includes the first second of the minute). Minimum allowable time is 2010-11-06T00:00:01Z
101
101
/// - exclude: Comma-separated list of the types of Tweets to exclude from the response. When exclude=retweets is used, the maximum historical Tweets returned is still 3200. When the exclude=replies parameter is used for any value, only the most recent 800 Tweets are available.
0 commit comments