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
- Call
getCommunityConfigurations()
function using the instance ofLMFeedClient
. - 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
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
configurations | List<Configuration> | List of Community Configurations |