Skip to main content

Get Community Configurations

Retrieve list of configuration settings tailored for our community by utilizing the designated API. This process ensures you access the customized parameters essential for our community's unique requirements.

Steps to fetch community configurations

  1. Call getCommunityConfigurations() function using the instance of LMFeedClient.
  2. Process the response LMResponse<GetCommunityConfigurationsResponse> as per your requirement.
CoroutineScope(Dispatchers.IO).launch {
// get response (LMResponse<GetCommunityConfigurationsResponse>)
val response = LMFeedClient.getInstance().getCommunityConfigurations()
if (response.success) {
// your function to process the response data
processResponse(response.data)
} else {
// your function to process error message
processError(response.errorMessage)
}
}

Models

GetCommunityConfigurationsResponse

VARIABLETYPEDESCRIPTIONOPTIONAL
configurationsList<Configuration>List of Community Configurations