v1ConvaiConversationsGet method

Future<Response<GetConversationsPageResponseModel>> v1ConvaiConversationsGet({
  1. String? cursor,
  2. String? agentId,
  3. Object? callSuccessful,
  4. int? callStartBeforeUnix,
  5. int? callStartAfterUnix,
  6. int? pageSize,
  7. String? xiApiKey,
})

Get Conversations @param cursor Used for fetching next page. Cursor is returned in the response. @param agent_id The id of the agent you're taking the action on. @param call_successful The result of the success evaluation @param call_start_before_unix Unix timestamp (in seconds) to filter conversations up to this start date. @param call_start_after_unix Unix timestamp (in seconds) to filter conversations after to this start date. @param page_size How many conversations to return at maximum. Can not exceed 100, defaults to 30. @param xi-api-key Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.

Implementation

Future<chopper.Response<GetConversationsPageResponseModel>>
v1ConvaiConversationsGet({
  String? cursor,
  String? agentId,
  Object? callSuccessful,
  int? callStartBeforeUnix,
  int? callStartAfterUnix,
  int? pageSize,
  String? xiApiKey,
}) {
  generatedMapping.putIfAbsent(
    GetConversationsPageResponseModel,
    () => GetConversationsPageResponseModel.fromJsonFactory,
  );

  return _v1ConvaiConversationsGet(
    cursor: cursor,
    agentId: agentId,
    callSuccessful: callSuccessful,
    callStartBeforeUnix: callStartBeforeUnix,
    callStartAfterUnix: callStartAfterUnix,
    pageSize: pageSize,
    xiApiKey: xiApiKey?.toString(),
  );
}