All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.konfigthis.newscatcherapi.client.api.LatestHeadlinesApiGenerated Maven / Gradle / Ivy

/*
 * NewsCatcher-V3 Production API
 *  

Visit our website https://newscatcherapi.com * * The version of the OpenAPI document: 3.2.16 * Contact: [email protected] * * NOTE: This class is auto generated by Konfig (https://konfigthis.com). * Do not edit the class manually. */ package com.konfigthis.newscatcherapi.client.api; import com.konfigthis.newscatcherapi.client.ApiCallback; import com.konfigthis.newscatcherapi.client.ApiClient; import com.konfigthis.newscatcherapi.client.ApiException; import com.konfigthis.newscatcherapi.client.ApiResponse; import com.konfigthis.newscatcherapi.client.Configuration; import com.konfigthis.newscatcherapi.client.Pair; import com.konfigthis.newscatcherapi.client.ProgressRequestBody; import com.konfigthis.newscatcherapi.client.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; import com.konfigthis.newscatcherapi.client.model.CSLHResponse; import com.konfigthis.newscatcherapi.client.model.CSLHResponse1; import com.konfigthis.newscatcherapi.client.model.LatestHeadlinesRequest; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.ws.rs.core.GenericType; public class LatestHeadlinesApiGenerated { private ApiClient localVarApiClient; private int localHostIndex; private String localCustomBaseUrl; public LatestHeadlinesApiGenerated() throws IllegalArgumentException { this(Configuration.getDefaultApiClient()); } public LatestHeadlinesApiGenerated(ApiClient apiClient) throws IllegalArgumentException { if (apiClient.getApiKey() == null) { throw new IllegalArgumentException("\"x-api-token\" is required but no API key was provided. Please set \"x-api-token\" with ApiClient#setApiKey(String)."); } this.localVarApiClient = apiClient; } public ApiClient getApiClient() { return localVarApiClient; } public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } public int getHostIndex() { return localHostIndex; } public void setHostIndex(int hostIndex) { this.localHostIndex = hostIndex; } public String getCustomBaseUrl() { return localCustomBaseUrl; } public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } private okhttp3.Call getCall(String when, Boolean byParseDate, String sortBy, Object lang, Object notLang, Object countries, Object notCountries, Object sources, Object predefinedSources, Object notSources, Object notAuthorName, Object rankedOnly, Boolean isHeadline, Boolean isOpinion, Boolean isPaidContent, Object parentUrl, Object allLinks, Object allDomainLinks, Integer wordCountMin, Integer wordCountMax, Integer page, Integer pageSize, String clusteringVariable, Boolean clusteringEnabled, Double clusteringThreshold, Boolean includeNlpData, Boolean hasNlp, String theme, String notTheme, String orGEntityName, String peREntityName, String loCEntityName, String miSCEntityName, Double titleSentimentMin, Double titleSentimentMax, Double contentSentimentMin, Double contentSentimentMax, Object iptcTags, Object notIptcTags, Object iabTags, Object notIabTags, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/latest_headlines"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (when != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("when", when)); } if (byParseDate != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("by_parse_date", byParseDate)); } if (sortBy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort_by", sortBy)); } if (lang != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("lang", lang)); } if (notLang != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("not_lang", notLang)); } if (countries != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("countries", countries)); } if (notCountries != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("not_countries", notCountries)); } if (sources != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sources", sources)); } if (predefinedSources != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("predefined_sources", predefinedSources)); } if (notSources != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("not_sources", notSources)); } if (notAuthorName != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("not_author_name", notAuthorName)); } if (rankedOnly != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("ranked_only", rankedOnly)); } if (isHeadline != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("is_headline", isHeadline)); } if (isOpinion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("is_opinion", isOpinion)); } if (isPaidContent != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("is_paid_content", isPaidContent)); } if (parentUrl != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("parent_url", parentUrl)); } if (allLinks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("all_links", allLinks)); } if (allDomainLinks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("all_domain_links", allDomainLinks)); } if (wordCountMin != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("word_count_min", wordCountMin)); } if (wordCountMax != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("word_count_max", wordCountMax)); } if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page_size", pageSize)); } if (clusteringVariable != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("clustering_variable", clusteringVariable)); } if (clusteringEnabled != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("clustering_enabled", clusteringEnabled)); } if (clusteringThreshold != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("clustering_threshold", clusteringThreshold)); } if (includeNlpData != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_nlp_data", includeNlpData)); } if (hasNlp != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("has_nlp", hasNlp)); } if (theme != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("theme", theme)); } if (notTheme != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("not_theme", notTheme)); } if (orGEntityName != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("ORG_entity_name", orGEntityName)); } if (peREntityName != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("PER_entity_name", peREntityName)); } if (loCEntityName != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("LOC_entity_name", loCEntityName)); } if (miSCEntityName != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("MISC_entity_name", miSCEntityName)); } if (titleSentimentMin != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("title_sentiment_min", titleSentimentMin)); } if (titleSentimentMax != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("title_sentiment_max", titleSentimentMax)); } if (contentSentimentMin != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("content_sentiment_min", contentSentimentMin)); } if (contentSentimentMax != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("content_sentiment_max", contentSentimentMax)); } if (iptcTags != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("iptc_tags", iptcTags)); } if (notIptcTags != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("not_iptc_tags", notIptcTags)); } if (iabTags != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("iab_tags", iabTags)); } if (notIabTags != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("not_iab_tags", notIabTags)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "apiKey" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getValidateBeforeCall(String when, Boolean byParseDate, String sortBy, Object lang, Object notLang, Object countries, Object notCountries, Object sources, Object predefinedSources, Object notSources, Object notAuthorName, Object rankedOnly, Boolean isHeadline, Boolean isOpinion, Boolean isPaidContent, Object parentUrl, Object allLinks, Object allDomainLinks, Integer wordCountMin, Integer wordCountMax, Integer page, Integer pageSize, String clusteringVariable, Boolean clusteringEnabled, Double clusteringThreshold, Boolean includeNlpData, Boolean hasNlp, String theme, String notTheme, String orGEntityName, String peREntityName, String loCEntityName, String miSCEntityName, Double titleSentimentMin, Double titleSentimentMax, Double contentSentimentMin, Double contentSentimentMax, Object iptcTags, Object notIptcTags, Object iabTags, Object notIabTags, final ApiCallback _callback) throws ApiException { return getCall(when, byParseDate, sortBy, lang, notLang, countries, notCountries, sources, predefinedSources, notSources, notAuthorName, rankedOnly, isHeadline, isOpinion, isPaidContent, parentUrl, allLinks, allDomainLinks, wordCountMin, wordCountMax, page, pageSize, clusteringVariable, clusteringEnabled, clusteringThreshold, includeNlpData, hasNlp, theme, notTheme, orGEntityName, peREntityName, loCEntityName, miSCEntityName, titleSentimentMin, titleSentimentMax, contentSentimentMin, contentSentimentMax, iptcTags, notIptcTags, iabTags, notIabTags, _callback); } private ApiResponse getWithHttpInfo(String when, Boolean byParseDate, String sortBy, Object lang, Object notLang, Object countries, Object notCountries, Object sources, Object predefinedSources, Object notSources, Object notAuthorName, Object rankedOnly, Boolean isHeadline, Boolean isOpinion, Boolean isPaidContent, Object parentUrl, Object allLinks, Object allDomainLinks, Integer wordCountMin, Integer wordCountMax, Integer page, Integer pageSize, String clusteringVariable, Boolean clusteringEnabled, Double clusteringThreshold, Boolean includeNlpData, Boolean hasNlp, String theme, String notTheme, String orGEntityName, String peREntityName, String loCEntityName, String miSCEntityName, Double titleSentimentMin, Double titleSentimentMax, Double contentSentimentMin, Double contentSentimentMax, Object iptcTags, Object notIptcTags, Object iabTags, Object notIabTags) throws ApiException { okhttp3.Call localVarCall = getValidateBeforeCall(when, byParseDate, sortBy, lang, notLang, countries, notCountries, sources, predefinedSources, notSources, notAuthorName, rankedOnly, isHeadline, isOpinion, isPaidContent, parentUrl, allLinks, allDomainLinks, wordCountMin, wordCountMax, page, pageSize, clusteringVariable, clusteringEnabled, clusteringThreshold, includeNlpData, hasNlp, theme, notTheme, orGEntityName, peREntityName, loCEntityName, miSCEntityName, titleSentimentMin, titleSentimentMax, contentSentimentMin, contentSentimentMax, iptcTags, notIptcTags, iabTags, notIabTags, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getAsync(String when, Boolean byParseDate, String sortBy, Object lang, Object notLang, Object countries, Object notCountries, Object sources, Object predefinedSources, Object notSources, Object notAuthorName, Object rankedOnly, Boolean isHeadline, Boolean isOpinion, Boolean isPaidContent, Object parentUrl, Object allLinks, Object allDomainLinks, Integer wordCountMin, Integer wordCountMax, Integer page, Integer pageSize, String clusteringVariable, Boolean clusteringEnabled, Double clusteringThreshold, Boolean includeNlpData, Boolean hasNlp, String theme, String notTheme, String orGEntityName, String peREntityName, String loCEntityName, String miSCEntityName, Double titleSentimentMin, Double titleSentimentMax, Double contentSentimentMin, Double contentSentimentMax, Object iptcTags, Object notIptcTags, Object iabTags, Object notIabTags, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getValidateBeforeCall(when, byParseDate, sortBy, lang, notLang, countries, notCountries, sources, predefinedSources, notSources, notAuthorName, rankedOnly, isHeadline, isOpinion, isPaidContent, parentUrl, allLinks, allDomainLinks, wordCountMin, wordCountMax, page, pageSize, clusteringVariable, clusteringEnabled, clusteringThreshold, includeNlpData, hasNlp, theme, notTheme, orGEntityName, peREntityName, loCEntityName, miSCEntityName, titleSentimentMin, titleSentimentMax, contentSentimentMin, contentSentimentMax, iptcTags, notIptcTags, iabTags, notIabTags, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public abstract class GetRequestBuilderGenerated { String when; Boolean byParseDate; String sortBy; Object lang; Object notLang; Object countries; Object notCountries; Object sources; Object predefinedSources; Object notSources; Object notAuthorName; Object rankedOnly; Boolean isHeadline; Boolean isOpinion; Boolean isPaidContent; Object parentUrl; Object allLinks; Object allDomainLinks; Integer wordCountMin; Integer wordCountMax; Integer page; Integer pageSize; String clusteringVariable; Boolean clusteringEnabled; Double clusteringThreshold; Boolean includeNlpData; Boolean hasNlp; String theme; String notTheme; String orGEntityName; String peREntityName; String loCEntityName; String miSCEntityName; Double titleSentimentMin; Double titleSentimentMax; Double contentSentimentMin; Double contentSentimentMax; Object iptcTags; Object notIptcTags; Object iabTags; Object notIabTags; public GetRequestBuilderGenerated() { } /** * Set when * @param when (optional, default to 7d) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder when(String when) { this.when = when; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set byParseDate * @param byParseDate (optional, default to false) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder byParseDate(Boolean byParseDate) { this.byParseDate = byParseDate; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set sortBy * @param sortBy (optional, default to relevancy) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder sortBy(String sortBy) { this.sortBy = sortBy; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set lang * @param lang (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder lang(Object lang) { this.lang = lang; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set notLang * @param notLang (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder notLang(Object notLang) { this.notLang = notLang; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set countries * @param countries (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder countries(Object countries) { this.countries = countries; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set notCountries * @param notCountries (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder notCountries(Object notCountries) { this.notCountries = notCountries; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set sources * @param sources (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder sources(Object sources) { this.sources = sources; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set predefinedSources * @param predefinedSources (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder predefinedSources(Object predefinedSources) { this.predefinedSources = predefinedSources; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set notSources * @param notSources (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder notSources(Object notSources) { this.notSources = notSources; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set notAuthorName * @param notAuthorName (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder notAuthorName(Object notAuthorName) { this.notAuthorName = notAuthorName; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set rankedOnly * @param rankedOnly (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder rankedOnly(Object rankedOnly) { this.rankedOnly = rankedOnly; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set isHeadline * @param isHeadline (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder isHeadline(Boolean isHeadline) { this.isHeadline = isHeadline; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set isOpinion * @param isOpinion (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder isOpinion(Boolean isOpinion) { this.isOpinion = isOpinion; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set isPaidContent * @param isPaidContent (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder isPaidContent(Boolean isPaidContent) { this.isPaidContent = isPaidContent; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set parentUrl * @param parentUrl (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder parentUrl(Object parentUrl) { this.parentUrl = parentUrl; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set allLinks * @param allLinks (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder allLinks(Object allLinks) { this.allLinks = allLinks; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set allDomainLinks * @param allDomainLinks (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder allDomainLinks(Object allDomainLinks) { this.allDomainLinks = allDomainLinks; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set wordCountMin * @param wordCountMin (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder wordCountMin(Integer wordCountMin) { this.wordCountMin = wordCountMin; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set wordCountMax * @param wordCountMax (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder wordCountMax(Integer wordCountMax) { this.wordCountMax = wordCountMax; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set page * @param page (optional, default to 1) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder page(Integer page) { this.page = page; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set pageSize * @param pageSize (optional, default to 100) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder pageSize(Integer pageSize) { this.pageSize = pageSize; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set clusteringVariable * @param clusteringVariable (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder clusteringVariable(String clusteringVariable) { this.clusteringVariable = clusteringVariable; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set clusteringEnabled * @param clusteringEnabled (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder clusteringEnabled(Boolean clusteringEnabled) { this.clusteringEnabled = clusteringEnabled; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set clusteringThreshold * @param clusteringThreshold (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder clusteringThreshold(Double clusteringThreshold) { this.clusteringThreshold = clusteringThreshold; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set includeNlpData * @param includeNlpData (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder includeNlpData(Boolean includeNlpData) { this.includeNlpData = includeNlpData; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set hasNlp * @param hasNlp (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder hasNlp(Boolean hasNlp) { this.hasNlp = hasNlp; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set theme * @param theme (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder theme(String theme) { this.theme = theme; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set notTheme * @param notTheme (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder notTheme(String notTheme) { this.notTheme = notTheme; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set orGEntityName * @param orGEntityName (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder orGEntityName(String orGEntityName) { this.orGEntityName = orGEntityName; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set peREntityName * @param peREntityName (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder peREntityName(String peREntityName) { this.peREntityName = peREntityName; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set loCEntityName * @param loCEntityName (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder loCEntityName(String loCEntityName) { this.loCEntityName = loCEntityName; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set miSCEntityName * @param miSCEntityName (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder miSCEntityName(String miSCEntityName) { this.miSCEntityName = miSCEntityName; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set titleSentimentMin * @param titleSentimentMin (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder titleSentimentMin(Double titleSentimentMin) { this.titleSentimentMin = titleSentimentMin; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set titleSentimentMax * @param titleSentimentMax (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder titleSentimentMax(Double titleSentimentMax) { this.titleSentimentMax = titleSentimentMax; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set contentSentimentMin * @param contentSentimentMin (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder contentSentimentMin(Double contentSentimentMin) { this.contentSentimentMin = contentSentimentMin; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set contentSentimentMax * @param contentSentimentMax (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder contentSentimentMax(Double contentSentimentMax) { this.contentSentimentMax = contentSentimentMax; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set iptcTags * @param iptcTags (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder iptcTags(Object iptcTags) { this.iptcTags = iptcTags; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set notIptcTags * @param notIptcTags (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder notIptcTags(Object notIptcTags) { this.notIptcTags = notIptcTags; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set iabTags * @param iabTags (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder iabTags(Object iabTags) { this.iabTags = iabTags; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Set notIabTags * @param notIabTags (optional) * @return LatestHeadlinesApi.GetRequestBuilder */ public LatestHeadlinesApi.GetRequestBuilder notIabTags(Object notIabTags) { this.notIabTags = notIabTags; return (LatestHeadlinesApi.GetRequestBuilder) this; } /** * Build call for get * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Successful Response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getCall(when, byParseDate, sortBy, lang, notLang, countries, notCountries, sources, predefinedSources, notSources, notAuthorName, rankedOnly, isHeadline, isOpinion, isPaidContent, parentUrl, allLinks, allDomainLinks, wordCountMin, wordCountMax, page, pageSize, clusteringVariable, clusteringEnabled, clusteringThreshold, includeNlpData, hasNlp, theme, notTheme, orGEntityName, peREntityName, loCEntityName, miSCEntityName, titleSentimentMin, titleSentimentMax, contentSentimentMin, contentSentimentMax, iptcTags, notIptcTags, iabTags, notIabTags, _callback); } /** * Execute get request * @return CSLHResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Successful Response -
*/ public CSLHResponse execute() throws ApiException { ApiResponse localVarResp = getWithHttpInfo(when, byParseDate, sortBy, lang, notLang, countries, notCountries, sources, predefinedSources, notSources, notAuthorName, rankedOnly, isHeadline, isOpinion, isPaidContent, parentUrl, allLinks, allDomainLinks, wordCountMin, wordCountMax, page, pageSize, clusteringVariable, clusteringEnabled, clusteringThreshold, includeNlpData, hasNlp, theme, notTheme, orGEntityName, peREntityName, loCEntityName, miSCEntityName, titleSentimentMin, titleSentimentMax, contentSentimentMin, contentSentimentMax, iptcTags, notIptcTags, iabTags, notIabTags); return localVarResp.getResponseBody(); } /** * Execute get request with HTTP info returned * @return ApiResponse<CSLHResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Successful Response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getWithHttpInfo(when, byParseDate, sortBy, lang, notLang, countries, notCountries, sources, predefinedSources, notSources, notAuthorName, rankedOnly, isHeadline, isOpinion, isPaidContent, parentUrl, allLinks, allDomainLinks, wordCountMin, wordCountMax, page, pageSize, clusteringVariable, clusteringEnabled, clusteringThreshold, includeNlpData, hasNlp, theme, notTheme, orGEntityName, peREntityName, loCEntityName, miSCEntityName, titleSentimentMin, titleSentimentMax, contentSentimentMin, contentSentimentMax, iptcTags, notIptcTags, iabTags, notIabTags); } /** * Execute get request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Successful Response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getAsync(when, byParseDate, sortBy, lang, notLang, countries, notCountries, sources, predefinedSources, notSources, notAuthorName, rankedOnly, isHeadline, isOpinion, isPaidContent, parentUrl, allLinks, allDomainLinks, wordCountMin, wordCountMax, page, pageSize, clusteringVariable, clusteringEnabled, clusteringThreshold, includeNlpData, hasNlp, theme, notTheme, orGEntityName, peREntityName, loCEntityName, miSCEntityName, titleSentimentMin, titleSentimentMax, contentSentimentMin, contentSentimentMax, iptcTags, notIptcTags, iabTags, notIabTags, _callback); } } /** * [Get] Search For Latest Headlines Request * This endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more. * @return GetRequestBuilder * @http.response.details
Status Code Description Response Headers
200 Successful Response -
*/ public LatestHeadlinesApi.GetRequestBuilder get() throws IllegalArgumentException { return ((LatestHeadlinesApi) this).new GetRequestBuilder(); } private okhttp3.Call postCall(LatestHeadlinesRequest latestHeadlinesRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = latestHeadlinesRequest; // create path and map variables String localVarPath = "/api/latest_headlines"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "apiKey" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call postValidateBeforeCall(LatestHeadlinesRequest latestHeadlinesRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'latestHeadlinesRequest' is set if (latestHeadlinesRequest == null) { throw new ApiException("Missing the required parameter 'latestHeadlinesRequest' when calling post(Async)"); } return postCall(latestHeadlinesRequest, _callback); } private ApiResponse postWithHttpInfo(LatestHeadlinesRequest latestHeadlinesRequest) throws ApiException { okhttp3.Call localVarCall = postValidateBeforeCall(latestHeadlinesRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call postAsync(LatestHeadlinesRequest latestHeadlinesRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postValidateBeforeCall(latestHeadlinesRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public abstract class PostRequestBuilderGenerated { String when; Boolean byParseDate; String sortBy; Object lang; Object notLang; Object countries; Object notCountries; Object sources; Object predefinedSources; Object notSources; Object notAuthorName; Object rankedOnly; Boolean isHeadline; Boolean isOpinion; Boolean isPaidContent; Object parentUrl; Object allLinks; Object allDomainLinks; Integer wordCountMin; Integer wordCountMax; Integer page; Integer pageSize; String clusteringVariable; Boolean clusteringEnabled; Double clusteringThreshold; Boolean includeNlpData; Boolean hasNlp; String theme; String notTheme; String orGEntityName; String peREntityName; String loCEntityName; String miSCEntityName; Double titleSentimentMin; Double titleSentimentMax; Double contentSentimentMin; Double contentSentimentMax; Object iptcTags; Object notIptcTags; Object iabTags; Object notIabTags; public PostRequestBuilderGenerated() { } /** * Set when * @param when (optional, default to 7d) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder when(String when) { this.when = when; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set byParseDate * @param byParseDate (optional, default to false) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder byParseDate(Boolean byParseDate) { this.byParseDate = byParseDate; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set sortBy * @param sortBy (optional, default to relevancy) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder sortBy(String sortBy) { this.sortBy = sortBy; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set lang * @param lang (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder lang(Object lang) { this.lang = lang; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set notLang * @param notLang (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder notLang(Object notLang) { this.notLang = notLang; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set countries * @param countries (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder countries(Object countries) { this.countries = countries; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set notCountries * @param notCountries (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder notCountries(Object notCountries) { this.notCountries = notCountries; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set sources * @param sources (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder sources(Object sources) { this.sources = sources; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set predefinedSources * @param predefinedSources (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder predefinedSources(Object predefinedSources) { this.predefinedSources = predefinedSources; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set notSources * @param notSources (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder notSources(Object notSources) { this.notSources = notSources; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set notAuthorName * @param notAuthorName (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder notAuthorName(Object notAuthorName) { this.notAuthorName = notAuthorName; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set rankedOnly * @param rankedOnly (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder rankedOnly(Object rankedOnly) { this.rankedOnly = rankedOnly; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set isHeadline * @param isHeadline (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder isHeadline(Boolean isHeadline) { this.isHeadline = isHeadline; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set isOpinion * @param isOpinion (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder isOpinion(Boolean isOpinion) { this.isOpinion = isOpinion; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set isPaidContent * @param isPaidContent (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder isPaidContent(Boolean isPaidContent) { this.isPaidContent = isPaidContent; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set parentUrl * @param parentUrl (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder parentUrl(Object parentUrl) { this.parentUrl = parentUrl; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set allLinks * @param allLinks (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder allLinks(Object allLinks) { this.allLinks = allLinks; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set allDomainLinks * @param allDomainLinks (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder allDomainLinks(Object allDomainLinks) { this.allDomainLinks = allDomainLinks; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set wordCountMin * @param wordCountMin (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder wordCountMin(Integer wordCountMin) { this.wordCountMin = wordCountMin; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set wordCountMax * @param wordCountMax (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder wordCountMax(Integer wordCountMax) { this.wordCountMax = wordCountMax; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set page * @param page (optional, default to 1) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder page(Integer page) { this.page = page; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set pageSize * @param pageSize (optional, default to 100) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder pageSize(Integer pageSize) { this.pageSize = pageSize; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set clusteringVariable * @param clusteringVariable (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder clusteringVariable(String clusteringVariable) { this.clusteringVariable = clusteringVariable; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set clusteringEnabled * @param clusteringEnabled (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder clusteringEnabled(Boolean clusteringEnabled) { this.clusteringEnabled = clusteringEnabled; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set clusteringThreshold * @param clusteringThreshold (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder clusteringThreshold(Double clusteringThreshold) { this.clusteringThreshold = clusteringThreshold; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set includeNlpData * @param includeNlpData (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder includeNlpData(Boolean includeNlpData) { this.includeNlpData = includeNlpData; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set hasNlp * @param hasNlp (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder hasNlp(Boolean hasNlp) { this.hasNlp = hasNlp; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set theme * @param theme (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder theme(String theme) { this.theme = theme; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set notTheme * @param notTheme (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder notTheme(String notTheme) { this.notTheme = notTheme; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set orGEntityName * @param orGEntityName (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder orGEntityName(String orGEntityName) { this.orGEntityName = orGEntityName; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set peREntityName * @param peREntityName (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder peREntityName(String peREntityName) { this.peREntityName = peREntityName; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set loCEntityName * @param loCEntityName (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder loCEntityName(String loCEntityName) { this.loCEntityName = loCEntityName; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set miSCEntityName * @param miSCEntityName (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder miSCEntityName(String miSCEntityName) { this.miSCEntityName = miSCEntityName; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set titleSentimentMin * @param titleSentimentMin (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder titleSentimentMin(Double titleSentimentMin) { this.titleSentimentMin = titleSentimentMin; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set titleSentimentMax * @param titleSentimentMax (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder titleSentimentMax(Double titleSentimentMax) { this.titleSentimentMax = titleSentimentMax; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set contentSentimentMin * @param contentSentimentMin (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder contentSentimentMin(Double contentSentimentMin) { this.contentSentimentMin = contentSentimentMin; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set contentSentimentMax * @param contentSentimentMax (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder contentSentimentMax(Double contentSentimentMax) { this.contentSentimentMax = contentSentimentMax; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set iptcTags * @param iptcTags (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder iptcTags(Object iptcTags) { this.iptcTags = iptcTags; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set notIptcTags * @param notIptcTags (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder notIptcTags(Object notIptcTags) { this.notIptcTags = notIptcTags; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set iabTags * @param iabTags (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder iabTags(Object iabTags) { this.iabTags = iabTags; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Set notIabTags * @param notIabTags (optional) * @return LatestHeadlinesApi.PostRequestBuilder */ public LatestHeadlinesApi.PostRequestBuilder notIabTags(Object notIabTags) { this.notIabTags = notIabTags; return (LatestHeadlinesApi.PostRequestBuilder) this; } /** * Build call for post * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Successful Response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { LatestHeadlinesRequest latestHeadlinesRequest = buildBodyParams(); return postCall(latestHeadlinesRequest, _callback); } private LatestHeadlinesRequest buildBodyParams() { LatestHeadlinesRequest latestHeadlinesRequest = new LatestHeadlinesRequest(); latestHeadlinesRequest.when(this.when); latestHeadlinesRequest.byParseDate(this.byParseDate); latestHeadlinesRequest.sortBy(this.sortBy); latestHeadlinesRequest.lang(this.lang); latestHeadlinesRequest.notLang(this.notLang); latestHeadlinesRequest.countries(this.countries); latestHeadlinesRequest.notCountries(this.notCountries); latestHeadlinesRequest.sources(this.sources); latestHeadlinesRequest.predefinedSources(this.predefinedSources); latestHeadlinesRequest.notSources(this.notSources); latestHeadlinesRequest.notAuthorName(this.notAuthorName); latestHeadlinesRequest.rankedOnly(this.rankedOnly); latestHeadlinesRequest.isHeadline(this.isHeadline); latestHeadlinesRequest.isOpinion(this.isOpinion); latestHeadlinesRequest.isPaidContent(this.isPaidContent); latestHeadlinesRequest.parentUrl(this.parentUrl); latestHeadlinesRequest.allLinks(this.allLinks); latestHeadlinesRequest.allDomainLinks(this.allDomainLinks); latestHeadlinesRequest.wordCountMin(this.wordCountMin); latestHeadlinesRequest.wordCountMax(this.wordCountMax); latestHeadlinesRequest.page(this.page); latestHeadlinesRequest.pageSize(this.pageSize); latestHeadlinesRequest.clusteringVariable(this.clusteringVariable); latestHeadlinesRequest.clusteringEnabled(this.clusteringEnabled); latestHeadlinesRequest.clusteringThreshold(this.clusteringThreshold); latestHeadlinesRequest.includeNlpData(this.includeNlpData); latestHeadlinesRequest.hasNlp(this.hasNlp); latestHeadlinesRequest.theme(this.theme); latestHeadlinesRequest.notTheme(this.notTheme); latestHeadlinesRequest.orGEntityName(this.orGEntityName); latestHeadlinesRequest.peREntityName(this.peREntityName); latestHeadlinesRequest.loCEntityName(this.loCEntityName); latestHeadlinesRequest.miSCEntityName(this.miSCEntityName); latestHeadlinesRequest.titleSentimentMin(this.titleSentimentMin); latestHeadlinesRequest.titleSentimentMax(this.titleSentimentMax); latestHeadlinesRequest.contentSentimentMin(this.contentSentimentMin); latestHeadlinesRequest.contentSentimentMax(this.contentSentimentMax); latestHeadlinesRequest.iptcTags(this.iptcTags); latestHeadlinesRequest.notIptcTags(this.notIptcTags); latestHeadlinesRequest.iabTags(this.iabTags); latestHeadlinesRequest.notIabTags(this.notIabTags); return latestHeadlinesRequest; } /** * Execute post request * @return CSLHResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Successful Response -
*/ public CSLHResponse1 execute() throws ApiException { LatestHeadlinesRequest latestHeadlinesRequest = buildBodyParams(); ApiResponse localVarResp = postWithHttpInfo(latestHeadlinesRequest); return localVarResp.getResponseBody(); } /** * Execute post request with HTTP info returned * @return ApiResponse<CSLHResponse1> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Successful Response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { LatestHeadlinesRequest latestHeadlinesRequest = buildBodyParams(); return postWithHttpInfo(latestHeadlinesRequest); } /** * Execute post request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Successful Response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { LatestHeadlinesRequest latestHeadlinesRequest = buildBodyParams(); return postAsync(latestHeadlinesRequest, _callback); } } /** * [Post] Search For Latest Headlines Request * This endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more. * @param latestHeadlinesRequest (required) * @return PostRequestBuilder * @http.response.details
Status Code Description Response Headers
200 Successful Response -
*/ public LatestHeadlinesApi.PostRequestBuilder post() throws IllegalArgumentException { return ((LatestHeadlinesApi) this).new PostRequestBuilder(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy