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
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,18 +7,20 @@ extension Twift {
7
7
///
8
8
/// Equivalent to `GET /2/users/:id/blocking`.
9
9
/// - Parameters:
10
-
/// - userId: The user ID whose blocked users you would like to retrieve
10
+
/// - userId: The user ID whose blocked 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
14
14
/// - maxResults: The maximum number of results to fetch.
15
15
/// - Returns: A Twitter API response object containing an array of ``User`` structs and any pinned tweets in the `includes` property
Copy file name to clipboardExpand all lines: Sources/Twift+Errors.swift
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,9 @@ public enum TwiftError: Error {
15
15
/// This error is thrown when the called function expected an integer within a specified range but was passed a value outside that range.
16
16
case RangeOutOfBoundsError(min:Int=1, max:Int=1000, fieldName:String, actual:Int)
17
17
18
+
/// This error is thrown when the function called expects a User ID but the caller did not provide one and one could not be found in the current Twift instance.
Copy file name to clipboardExpand all lines: Sources/Twift+Follows.swift
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,14 @@ extension Twift {
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
21
21
/// - maxResults: The maximum number of results to fetch.
22
22
/// - Returns: A Twitter API response object containing an array of ``User`` structs and any pinned tweets in the `includes` property
/// - 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
56
58
/// - maxResults: The maximum number of results to fetch.
57
59
/// - Returns: A Twitter API response object containing an array of ``User`` structs and any pinned tweets in the `includes` property
/// - 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.
62
66
/// - maxResults: Specifies the number of Tweets to try and retrieve, up to a maximum of 100 per distinct request. By default, 10 results are returned if this parameter is not supplied. The minimum permitted value is 10. It is possible to receive less than the max_results per request throughout the pagination process.
63
67
/// - Returns: A response object containing an array of Tweets liked by the target User
/// - 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
69
69
/// - maxResults: The maximum number of results to fetch.
70
70
/// - Returns: A response object containing an array of Lists owned by the user id, any requested expansions, and a meta object with pagination tokens
/// - 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
117
119
/// - maxResults: The maximum number of results to fetch.
118
120
/// - Returns: A response object containing an array of Lists the user is a member of, any expanded objects, and a meta object with pagination tokens.
/// - 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
276
284
/// - maxResults: The maximum number of results to fetch.
277
285
/// - Returns: A response object containing an array of lists followed by the user, any requested expansions, and a meta object with pagination information
/// - fields: Any additional fields to include on returned objects
340
354
/// - expansions: Objects and their corresponding fields that should be expanded in the `includes` property
341
355
/// - Returns: A response object containing an array of lists pinned by the user, any requested expansions, and a meta object with pagination information
0 commit comments