getUsersByIdsWithHttpInfo method
Get users by ids
Get a list of users based on a provided list of user ids. ##### Permissions Requires an active session but no other permissions.
Note: This method returns the HTTP Response
.
Parameters:
-
List<String> requestBody (required): List of user ids
-
int since: Only return users that have been modified since the given Unix timestamp (in milliseconds). Minimum server version: 5.14
Implementation
Future<Response> getUsersByIdsWithHttpInfo(
List<String> requestBody, {
int? since,
}) async {
// ignore: prefer_const_declarations
final path = r'/users/ids';
// ignore: prefer_final_locals
Object? postBody = requestBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (since != null) {
queryParams.addAll(_queryParams('', 'since', since));
}
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}