archive method

Future<NewsdataResponse> archive({
  1. String? q,
  2. String? qInTitle,
  3. String? qInMeta,
  4. List<String>? country,
  5. List<String>? excludeCountry,
  6. List<String>? category,
  7. List<String>? excludeCategory,
  8. List<String>? language,
  9. List<String>? excludeLanguage,
  10. List<String>? domain,
  11. List<String>? domainUrl,
  12. List<String>? excludeDomain,
  13. String? priorityDomain,
  14. String? timezone,
  15. int? size,
  16. bool? fullContent,
  17. bool? image,
  18. bool? video,
  19. String? page,
  20. String? fromDate,
  21. String? toDate,
  22. List<String>? excludeField,
  23. Object? id,
  24. String? url,
  25. String? sort,
  26. List<String>? tag,
  27. String? sentiment,
  28. double? sentimentScore,
  29. List<String>? region,
  30. List<String>? organization,
  31. List<String>? creator,
  32. List<String>? dataType,
  33. bool? removeDuplicate,
  34. String? rawQuery,
})

Fetch historical news. GET /1/archive.

Implementation

Future<NewsdataResponse> archive({
  String? q,
  String? qInTitle,
  String? qInMeta,
  List<String>? country,
  List<String>? excludeCountry,
  List<String>? category,
  List<String>? excludeCategory,
  List<String>? language,
  List<String>? excludeLanguage,
  List<String>? domain,
  List<String>? domainUrl,
  List<String>? excludeDomain,
  String? priorityDomain,
  String? timezone,
  int? size,
  bool? fullContent,
  bool? image,
  bool? video,
  String? page,
  String? fromDate,
  String? toDate,
  List<String>? excludeField,
  Object? id,
  String? url,
  String? sort,
  List<String>? tag,
  String? sentiment,
  double? sentimentScore,
  List<String>? region,
  List<String>? organization,
  List<String>? creator,
  List<String>? dataType,
  bool? removeDuplicate,
  String? rawQuery,
}) {
  return _dispatch(
    Endpoint.archive,
    {
      'q': q,
      'qintitle': qInTitle,
      'qinmeta': qInMeta,
      'country': country,
      'excludecountry': excludeCountry,
      'category': category,
      'excludecategory': excludeCategory,
      'language': language,
      'excludelanguage': excludeLanguage,
      'domain': domain,
      'domainurl': domainUrl,
      'excludedomain': excludeDomain,
      'prioritydomain': priorityDomain,
      'timezone': timezone,
      'size': size,
      'full_content': fullContent,
      'image': image,
      'video': video,
      'page': page,
      'from_date': fromDate,
      'to_date': toDate,
      'excludefield': excludeField,
      'id': id,
      'url': url,
      'sort': sort,
      'tag': tag,
      'sentiment': sentiment,
      'sentiment_score': sentimentScore,
      'region': region,
      'organization': organization,
      'creator': creator,
      'datatype': dataType,
      'removeduplicate': removeDuplicate,
    },
    rawQuery: rawQuery,
  );
}