v1HistoryGet method

Future<Response<GetSpeechHistoryResponseModel>> v1HistoryGet({
  1. int? pageSize,
  2. String? startAfterHistoryItemId,
  3. String? voiceId,
  4. String? search,
  5. String? source,
  6. String? xiApiKey,
})

List Generated Items @param page_size How many history items to return at maximum. Can not exceed 1000, defaults to 100. @param start_after_history_item_id After which ID to start fetching, use this parameter to paginate across a large collection of history items. In case this parameter is not provided history items will be fetched starting from the most recently created one ordered descending by their creation date. @param voice_id Voice ID to be filtered for, you can use GET https://api.elevenlabs.io/v1/voices to receive a list of voices and their IDs. @param search search term used for filtering @param source Source of the generated history item @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<GetSpeechHistoryResponseModel>> v1HistoryGet({
  int? pageSize,
  String? startAfterHistoryItemId,
  String? voiceId,
  String? search,
  String? source,
  String? xiApiKey,
}) {
  generatedMapping.putIfAbsent(
    GetSpeechHistoryResponseModel,
    () => GetSpeechHistoryResponseModel.fromJsonFactory,
  );

  return _v1HistoryGet(
    pageSize: pageSize,
    startAfterHistoryItemId: startAfterHistoryItemId,
    voiceId: voiceId,
    search: search,
    source: source,
    xiApiKey: xiApiKey?.toString(),
  );
}