archive method
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,
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,
);
}