getPreferencesByCategoryWithHttpInfo method
List a user's preferences by category
Lists the current user's stored preferences in the given category. ##### Permissions Must be logged in as the user being updated or have the edit_other_users
permission.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> getPreferencesByCategoryWithHttpInfo(
String userId,
String category,
) async {
// ignore: prefer_const_declarations
final path =
r'/users/{user_id}/preferences/{category}'.replaceAll('{user_id}', userId).replaceAll('{category}', category);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}