Get Chatbots
Simplify your chatbot application development with LikeMinds Flutter Chat SDK. By utilizing this feature you can view all the chatbots for your community.
Steps to fetch Chatbots
- Create an object of the
GetChatbotsRequest
class using theGetChatbotsRequestBuilder
class. - For creating a post call
getChatbots()
present inLMChatClient
class using your request object. - Process the response LMResponse<
GetChatbotsResponse
> as per your requirement.
GetChatbotsRequest request = (GetChatbotsRequestBuilder()
..page(1)
..pageSize(10))
.build();
LMResponse<GetChatbotsResponse> response = await lmChatClient.getChatbots(request);
if (response.success) {
// your function to process the response data
processResponse(response);
} else {
// your function to process error message
processError(response);
}
Models
GetChatbotsRequest
List of parameters for the GetChatbotsRequest
class
Variable | Type | Description | Optional |
---|---|---|---|
page | int | Page number for API response | |
pageSize | int | Page size for API response |
GetChatbotsResponse
List of parameters for the GetChatbotsResponse
class
Variable | Type | Description | Optional |
---|---|---|---|
page | int | Current page number | |
totalPages | int | Total number of pages | |
totalChatbots | int | Total number of chatbots available | |
users | List<User> | List of chatbot users |