getUserThreadsWithHttpInfo method
Get all threads that user is following
Get all threads that user is following Minimum server version: 5.29 ##### Permissions Must be logged in as the user or have edit_other_users
permission.
Note: This method returns the HTTP Response
.
Parameters:
-
String userId (required): The ID of the user. This can also be "me" which will point to the current user.
-
String teamId (required): The ID of the team in which the thread is.
-
int since: Since filters the threads based on their LastUpdateAt timestamp.
-
bool deleted: Deleted will specify that even deleted threads should be returned (For mobile sync).
-
bool extended: Extended will enrich the response with participant details.
-
int page: Page specifies which part of the results to return, by PageSize.
-
int pageSize: PageSize specifies the size of the returned chunk of results.
-
bool totalsOnly: Setting this to true will only return the total counts.
Implementation
Future<Response> getUserThreadsWithHttpInfo(
String userId,
String teamId, {
int? since,
bool? deleted,
bool? extended,
int? page,
int? pageSize,
bool? totalsOnly,
}) async {
// ignore: prefer_const_declarations
final path =
r'/users/{user_id}/teams/{team_id}/threads'.replaceAll('{user_id}', userId).replaceAll('{team_id}', teamId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (since != null) {
queryParams.addAll(_queryParams('', 'since', since));
}
if (deleted != null) {
queryParams.addAll(_queryParams('', 'deleted', deleted));
}
if (extended != null) {
queryParams.addAll(_queryParams('', 'extended', extended));
}
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
if (pageSize != null) {
queryParams.addAll(_queryParams('', 'pageSize', pageSize));
}
if (totalsOnly != null) {
queryParams.addAll(_queryParams('', 'totalsOnly', totalsOnly));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}