Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* AYLIEN News API
* The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
*
* The version of the OpenAPI document: 3.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.aylien.newsapi.api;
import com.aylien.newsapi.ApiCallback;
import com.aylien.newsapi.ApiClient;
import com.aylien.newsapi.ApiException;
import com.aylien.newsapi.ApiResponse;
import com.aylien.newsapi.Configuration;
import com.aylien.newsapi.Pair;
import com.aylien.newsapi.ProgressRequestBody;
import com.aylien.newsapi.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.aylien.newsapi.models.Autocompletes;
import com.aylien.newsapi.models.Clusters;
import com.aylien.newsapi.models.Coverages;
import com.aylien.newsapi.models.Errors;
import com.aylien.newsapi.models.Histograms;
import org.threeten.bp.OffsetDateTime;
import com.aylien.newsapi.models.RelatedStories;
import com.aylien.newsapi.models.Stories;
import com.aylien.newsapi.models.TimeSeriesList;
import com.aylien.newsapi.models.Trends;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DefaultApi {
private ApiClient localVarApiClient;
public DefaultApi() {
this(Configuration.getDefaultApiClient());
}
public DefaultApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
private okhttp3.Call listAutocompletesCall(String type, String term, String language, Integer perPage, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/autocompletes";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (type != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type));
}
if (term != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("term", term));
}
if (language != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("language", language));
}
if (perPage != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json", "text/xml"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "app_id", "app_key" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call listAutocompletesValidateBeforeCall(String type, String term, String language, Integer perPage, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'type' is set
if (type == null) {
throw new ApiException("Missing the required parameter 'type' when calling listAutocompletes(Async)");
}
// verify the required parameter 'term' is set
if (term == null) {
throw new ApiException("Missing the required parameter 'term' when calling listAutocompletes(Async)");
}
okhttp3.Call localVarCall = listAutocompletesCall(type, term, language, perPage, _callback);
return localVarCall;
}
private ApiResponse listAutocompletesWithHttpInfo(String type, String term, String language, Integer perPage) throws ApiException {
okhttp3.Call localVarCall = listAutocompletesValidateBeforeCall(type, term, language, perPage, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call listAutocompletesAsync(String type, String term, String language, Integer perPage, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = listAutocompletesValidateBeforeCall(type, term, language, perPage, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIlistAutocompletesRequest {
private final String type;
private final String term;
private String language;
private Integer perPage;
private APIlistAutocompletesRequest(String type, String term) {
this.type = type;
this.term = term;
}
/**
* Set language
* @param language This parameter is used for autocompletes whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes. (optional, default to en)
* @return APIlistAutocompletesRequest
*/
public APIlistAutocompletesRequest language(String language) {
this.language = language;
return this;
}
/**
* Set perPage
* @param perPage This parameter is used for specifying number of items in each page. (optional, default to 3)
* @return APIlistAutocompletesRequest
*/
public APIlistAutocompletesRequest perPage(Integer perPage) {
this.perPage = perPage;
return this;
}
/**
* Build call for listAutocompletes
* @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
An object including an array of autocompletes
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
401
Unauthorized
-
404
Not Found
-
422
Unprocessable Entity
-
429
Too Many Requests
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
500
Internal Server Error
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return listAutocompletesCall(type, term, language, perPage, _callback);
}
/**
* Execute listAutocompletes request
* @return Autocompletes
* @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
An object including an array of autocompletes
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
401
Unauthorized
-
404
Not Found
-
422
Unprocessable Entity
-
429
Too Many Requests
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
500
Internal Server Error
-
*/
public Autocompletes execute() throws ApiException {
ApiResponse localVarResp = listAutocompletesWithHttpInfo(type, term, language, perPage);
return localVarResp.getData();
}
/**
* Execute listAutocompletes request with HTTP info returned
* @return ApiResponse<Autocompletes>
* @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
An object including an array of autocompletes
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
401
Unauthorized
-
404
Not Found
-
422
Unprocessable Entity
-
429
Too Many Requests
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
500
Internal Server Error
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return listAutocompletesWithHttpInfo(type, term, language, perPage);
}
/**
* Execute listAutocompletes 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
An object including an array of autocompletes
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
401
Unauthorized
-
404
Not Found
-
422
Unprocessable Entity
-
429
Too Many Requests
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
500
Internal Server Error
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return listAutocompletesAsync(type, term, language, perPage, _callback);
}
}
/**
* List autocompletes
* The autocompletes endpoint a string of characters provided to it, and then returns suggested terms that are the most likely full words or strings. The terms returned by the News API are based on parameters the type parameters you can see below. For example, if you provide the autocompletes endpoint with the term `New York C` and select the type `dbpedia_resources`, the API will return links to the DBpedia resources `New_York_City`, `New_York_City_Subway`, `New_York_City_Police_Department`, and so on.
* @param type This parameter is used for defining the type of autocompletes. (required)
* @param term This parameter is used for finding autocomplete objects that contain the specified value. (required)
* @return APIlistAutocompletesRequest
* @http.response.details
Status Code
Description
Response Headers
200
An object including an array of autocompletes
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
401
Unauthorized
-
404
Not Found
-
422
Unprocessable Entity
-
429
Too Many Requests
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
500
Internal Server Error
-
*/
public APIlistAutocompletesRequest listAutocompletes(String type, String term) {
return new APIlistAutocompletesRequest(type, term);
}
private okhttp3.Call listClustersCall(List id, List notId, Integer storyCountMin, Integer storyCountMax, String timeStart, String timeEnd, String earliestStoryStart, String earliestStoryEnd, String latestStoryStart, String latestStoryEnd, List locationCountry, List notLocationCountry, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/clusters";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (id != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "id[]", id));
}
if (notId != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!id[]", notId));
}
if (storyCountMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("story_count.min", storyCountMin));
}
if (storyCountMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("story_count.max", storyCountMax));
}
if (timeStart != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("time.start", timeStart));
}
if (timeEnd != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("time.end", timeEnd));
}
if (earliestStoryStart != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("earliest_story.start", earliestStoryStart));
}
if (earliestStoryEnd != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("earliest_story.end", earliestStoryEnd));
}
if (latestStoryStart != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("latest_story.start", latestStoryStart));
}
if (latestStoryEnd != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("latest_story.end", latestStoryEnd));
}
if (locationCountry != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "location.country", locationCountry));
}
if (notLocationCountry != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!location.country", notLocationCountry));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json", "text/xml"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "app_id", "app_key" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call listClustersValidateBeforeCall(List id, List notId, Integer storyCountMin, Integer storyCountMax, String timeStart, String timeEnd, String earliestStoryStart, String earliestStoryEnd, String latestStoryStart, String latestStoryEnd, List locationCountry, List notLocationCountry, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = listClustersCall(id, notId, storyCountMin, storyCountMax, timeStart, timeEnd, earliestStoryStart, earliestStoryEnd, latestStoryStart, latestStoryEnd, locationCountry, notLocationCountry, _callback);
return localVarCall;
}
private ApiResponse listClustersWithHttpInfo(List id, List notId, Integer storyCountMin, Integer storyCountMax, String timeStart, String timeEnd, String earliestStoryStart, String earliestStoryEnd, String latestStoryStart, String latestStoryEnd, List locationCountry, List notLocationCountry) throws ApiException {
okhttp3.Call localVarCall = listClustersValidateBeforeCall(id, notId, storyCountMin, storyCountMax, timeStart, timeEnd, earliestStoryStart, earliestStoryEnd, latestStoryStart, latestStoryEnd, locationCountry, notLocationCountry, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call listClustersAsync(List id, List notId, Integer storyCountMin, Integer storyCountMax, String timeStart, String timeEnd, String earliestStoryStart, String earliestStoryEnd, String latestStoryStart, String latestStoryEnd, List locationCountry, List notLocationCountry, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = listClustersValidateBeforeCall(id, notId, storyCountMin, storyCountMax, timeStart, timeEnd, earliestStoryStart, earliestStoryEnd, latestStoryStart, latestStoryEnd, locationCountry, notLocationCountry, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIlistClustersRequest {
private List id;
private List notId;
private Integer storyCountMin;
private Integer storyCountMax;
private String timeStart;
private String timeEnd;
private String earliestStoryStart;
private String earliestStoryEnd;
private String latestStoryStart;
private String latestStoryEnd;
private List locationCountry;
private List notLocationCountry;
private APIlistClustersRequest() {
}
/**
* Set id
* @param id This parameter is used for finding clusters by cluster id. (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest id(List id) {
this.id = id;
return this;
}
/**
* Set notId
* @param notId This parameter is used for excluding clusters by cluster id. (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest notId(List notId) {
this.notId = notId;
return this;
}
/**
* Set storyCountMin
* @param storyCountMin This parameter is used for finding clusters with more than or equal to a specific amount of stories associated with them. (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest storyCountMin(Integer storyCountMin) {
this.storyCountMin = storyCountMin;
return this;
}
/**
* Set storyCountMax
* @param storyCountMax This parameter is used for finding clusters with less than or equal to a specific amount of stories associated with them. (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest storyCountMax(Integer storyCountMax) {
this.storyCountMax = storyCountMax;
return this;
}
/**
* Set timeStart
* @param timeStart This parameter is used for finding clusters whose creation time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates). (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest timeStart(String timeStart) {
this.timeStart = timeStart;
return this;
}
/**
* Set timeEnd
* @param timeEnd This parameter is used for finding clusters whose creation time is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates). (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest timeEnd(String timeEnd) {
this.timeEnd = timeEnd;
return this;
}
/**
* Set earliestStoryStart
* @param earliestStoryStart This parameter is used for finding clusters whose publication date of its earliest story is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates). (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest earliestStoryStart(String earliestStoryStart) {
this.earliestStoryStart = earliestStoryStart;
return this;
}
/**
* Set earliestStoryEnd
* @param earliestStoryEnd This parameter is used for finding clusters whose publication date of its earliest story is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates). (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest earliestStoryEnd(String earliestStoryEnd) {
this.earliestStoryEnd = earliestStoryEnd;
return this;
}
/**
* Set latestStoryStart
* @param latestStoryStart This parameter is used for finding clusters whose publication date of its latest story is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates). (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest latestStoryStart(String latestStoryStart) {
this.latestStoryStart = latestStoryStart;
return this;
}
/**
* Set latestStoryEnd
* @param latestStoryEnd This parameter is used for finding clusters whose publication date of its latest story is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates). (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest latestStoryEnd(String latestStoryEnd) {
this.latestStoryEnd = latestStoryEnd;
return this;
}
/**
* Set locationCountry
* @param locationCountry This parameter is used for finding clusters belonging to a specific country. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations). (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest locationCountry(List locationCountry) {
this.locationCountry = locationCountry;
return this;
}
/**
* Set notLocationCountry
* @param notLocationCountry This parameter is used for excluding clusters belonging to a specific country. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations). (optional)
* @return APIlistClustersRequest
*/
public APIlistClustersRequest notLocationCountry(List notLocationCountry) {
this.notLocationCountry = notLocationCountry;
return this;
}
/**
* Build call for listClusters
* @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
An object including an array of clusters
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
401
Unauthorized
-
404
Not Found
-
422
Unprocessable Entity
-
429
Too Many Requests
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
500
Internal Server Error
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return listClustersCall(id, notId, storyCountMin, storyCountMax, timeStart, timeEnd, earliestStoryStart, earliestStoryEnd, latestStoryStart, latestStoryEnd, locationCountry, notLocationCountry, _callback);
}
/**
* Execute listClusters request
* @return Clusters
* @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
An object including an array of clusters
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
401
Unauthorized
-
404
Not Found
-
422
Unprocessable Entity
-
429
Too Many Requests
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
500
Internal Server Error
-
*/
public Clusters execute() throws ApiException {
ApiResponse localVarResp = listClustersWithHttpInfo(id, notId, storyCountMin, storyCountMax, timeStart, timeEnd, earliestStoryStart, earliestStoryEnd, latestStoryStart, latestStoryEnd, locationCountry, notLocationCountry);
return localVarResp.getData();
}
/**
* Execute listClusters request with HTTP info returned
* @return ApiResponse<Clusters>
* @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
An object including an array of clusters
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
401
Unauthorized
-
404
Not Found
-
422
Unprocessable Entity
-
429
Too Many Requests
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
500
Internal Server Error
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return listClustersWithHttpInfo(id, notId, storyCountMin, storyCountMax, timeStart, timeEnd, earliestStoryStart, earliestStoryEnd, latestStoryStart, latestStoryEnd, locationCountry, notLocationCountry);
}
/**
* Execute listClusters 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
An object including an array of clusters
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
401
Unauthorized
-
404
Not Found
-
422
Unprocessable Entity
-
429
Too Many Requests
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
500
Internal Server Error
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return listClustersAsync(id, notId, storyCountMin, storyCountMax, timeStart, timeEnd, earliestStoryStart, earliestStoryEnd, latestStoryStart, latestStoryEnd, locationCountry, notLocationCountry, _callback);
}
}
/**
* List Clusters
* The clusters endpoint is used to return clusters based on parameters you set in your query.
* @return APIlistClustersRequest
* @http.response.details
Status Code
Description
Response Headers
200
An object including an array of clusters
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
401
Unauthorized
-
404
Not Found
-
422
Unprocessable Entity
-
429
Too Many Requests
* X-RateLimit-Limit - The number of allowed requests in the current period. * X-RateLimit-Remaining - The number of remaining requests in the current period. * X-RateLimit-Reset - The remaining window before the rate limit resets in UTC [epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
500
Internal Server Error
-
*/
public APIlistClustersRequest listClusters() {
return new APIlistClustersRequest();
}
private okhttp3.Call listCoveragesCall(List id, List notId, String title, String body, String text, String translationsEnTitle, String translationsEnBody, String translationsEnText, List linksPermalink, List notLinksPermalink, List language, List notLanguage, String publishedAtStart, String publishedAtEnd, String categoriesTaxonomy, Boolean categoriesConfident, List categoriesId, List notCategoriesId, List categoriesLevel, List notCategoriesLevel, List entitiesTitleText, List notEntitiesTitleText, List entitiesTitleType, List notEntitiesTitleType, List entitiesTitleLinksDbpedia, List notEntitiesTitleLinksDbpedia, List entitiesBodyText, List notEntitiesBodyText, List entitiesBodyType, List notEntitiesBodyType, List entitiesBodyLinksDbpedia, List notEntitiesBodyLinksDbpedia, String sentimentTitlePolarity, String notSentimentTitlePolarity, String sentimentBodyPolarity, String notSentimentBodyPolarity, Integer mediaImagesCountMin, Integer mediaImagesCountMax, Integer mediaImagesWidthMin, Integer mediaImagesWidthMax, Integer mediaImagesHeightMin, Integer mediaImagesHeightMax, Integer mediaImagesContentLengthMin, Integer mediaImagesContentLengthMax, List mediaImagesFormat, List notMediaImagesFormat, Integer mediaVideosCountMin, Integer mediaVideosCountMax, List authorId, List notAuthorId, String authorName, String notAuthorName, List sourceId, List notSourceId, List sourceName, List notSourceName, List sourceDomain, List notSourceDomain, List sourceLocationsCountry, List notSourceLocationsCountry, List sourceLocationsState, List notSourceLocationsState, List sourceLocationsCity, List notSourceLocationsCity, List sourceScopesCountry, List notSourceScopesCountry, List sourceScopesState, List notSourceScopesState, List sourceScopesCity, List notSourceScopesCity, List sourceScopesLevel, List notSourceScopesLevel, Integer sourceLinksInCountMin, Integer sourceLinksInCountMax, Integer sourceRankingsAlexaRankMin, Integer sourceRankingsAlexaRankMax, List sourceRankingsAlexaCountry, Integer socialSharesCountFacebookMin, Integer socialSharesCountFacebookMax, Integer socialSharesCountGooglePlusMin, Integer socialSharesCountGooglePlusMax, Integer socialSharesCountLinkedinMin, Integer socialSharesCountLinkedinMax, Integer socialSharesCountRedditMin, Integer socialSharesCountRedditMax, List clusters, List _return, Long storyId, String storyUrl, String storyTitle, String storyBody, OffsetDateTime storyPublishedAt, String storyLanguage, Integer perPage, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/coverages";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (id != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "id[]", id));
}
if (notId != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!id[]", notId));
}
if (title != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("title", title));
}
if (body != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("body", body));
}
if (text != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("text", text));
}
if (translationsEnTitle != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("translations.en.title", translationsEnTitle));
}
if (translationsEnBody != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("translations.en.body", translationsEnBody));
}
if (translationsEnText != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("translations.en.text", translationsEnText));
}
if (linksPermalink != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "links.permalink[]", linksPermalink));
}
if (notLinksPermalink != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!links.permalink[]", notLinksPermalink));
}
if (language != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "language[]", language));
}
if (notLanguage != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!language[]", notLanguage));
}
if (publishedAtStart != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("published_at.start", publishedAtStart));
}
if (publishedAtEnd != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("published_at.end", publishedAtEnd));
}
if (categoriesTaxonomy != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("categories.taxonomy", categoriesTaxonomy));
}
if (categoriesConfident != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("categories.confident", categoriesConfident));
}
if (categoriesId != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "categories.id[]", categoriesId));
}
if (notCategoriesId != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!categories.id[]", notCategoriesId));
}
if (categoriesLevel != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "categories.level[]", categoriesLevel));
}
if (notCategoriesLevel != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!categories.level[]", notCategoriesLevel));
}
if (entitiesTitleText != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "entities.title.text[]", entitiesTitleText));
}
if (notEntitiesTitleText != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!entities.title.text[]", notEntitiesTitleText));
}
if (entitiesTitleType != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "entities.title.type[]", entitiesTitleType));
}
if (notEntitiesTitleType != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!entities.title.type[]", notEntitiesTitleType));
}
if (entitiesTitleLinksDbpedia != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "entities.title.links.dbpedia[]", entitiesTitleLinksDbpedia));
}
if (notEntitiesTitleLinksDbpedia != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!entities.title.links.dbpedia[]", notEntitiesTitleLinksDbpedia));
}
if (entitiesBodyText != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "entities.body.text[]", entitiesBodyText));
}
if (notEntitiesBodyText != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!entities.body.text[]", notEntitiesBodyText));
}
if (entitiesBodyType != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "entities.body.type[]", entitiesBodyType));
}
if (notEntitiesBodyType != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!entities.body.type[]", notEntitiesBodyType));
}
if (entitiesBodyLinksDbpedia != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "entities.body.links.dbpedia[]", entitiesBodyLinksDbpedia));
}
if (notEntitiesBodyLinksDbpedia != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!entities.body.links.dbpedia[]", notEntitiesBodyLinksDbpedia));
}
if (sentimentTitlePolarity != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("sentiment.title.polarity", sentimentTitlePolarity));
}
if (notSentimentTitlePolarity != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("!sentiment.title.polarity", notSentimentTitlePolarity));
}
if (sentimentBodyPolarity != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("sentiment.body.polarity", sentimentBodyPolarity));
}
if (notSentimentBodyPolarity != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("!sentiment.body.polarity", notSentimentBodyPolarity));
}
if (mediaImagesCountMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("media.images.count.min", mediaImagesCountMin));
}
if (mediaImagesCountMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("media.images.count.max", mediaImagesCountMax));
}
if (mediaImagesWidthMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("media.images.width.min", mediaImagesWidthMin));
}
if (mediaImagesWidthMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("media.images.width.max", mediaImagesWidthMax));
}
if (mediaImagesHeightMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("media.images.height.min", mediaImagesHeightMin));
}
if (mediaImagesHeightMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("media.images.height.max", mediaImagesHeightMax));
}
if (mediaImagesContentLengthMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("media.images.content_length.min", mediaImagesContentLengthMin));
}
if (mediaImagesContentLengthMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("media.images.content_length.max", mediaImagesContentLengthMax));
}
if (mediaImagesFormat != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "media.images.format[]", mediaImagesFormat));
}
if (notMediaImagesFormat != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!media.images.format[]", notMediaImagesFormat));
}
if (mediaVideosCountMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("media.videos.count.min", mediaVideosCountMin));
}
if (mediaVideosCountMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("media.videos.count.max", mediaVideosCountMax));
}
if (authorId != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "author.id[]", authorId));
}
if (notAuthorId != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!author.id[]", notAuthorId));
}
if (authorName != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("author.name", authorName));
}
if (notAuthorName != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("!author.name", notAuthorName));
}
if (sourceId != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "source.id[]", sourceId));
}
if (notSourceId != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!source.id[]", notSourceId));
}
if (sourceName != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "source.name[]", sourceName));
}
if (notSourceName != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!source.name[]", notSourceName));
}
if (sourceDomain != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "source.domain[]", sourceDomain));
}
if (notSourceDomain != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!source.domain[]", notSourceDomain));
}
if (sourceLocationsCountry != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "source.locations.country[]", sourceLocationsCountry));
}
if (notSourceLocationsCountry != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!source.locations.country[]", notSourceLocationsCountry));
}
if (sourceLocationsState != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "source.locations.state[]", sourceLocationsState));
}
if (notSourceLocationsState != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!source.locations.state[]", notSourceLocationsState));
}
if (sourceLocationsCity != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "source.locations.city[]", sourceLocationsCity));
}
if (notSourceLocationsCity != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!source.locations.city[]", notSourceLocationsCity));
}
if (sourceScopesCountry != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "source.scopes.country[]", sourceScopesCountry));
}
if (notSourceScopesCountry != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!source.scopes.country[]", notSourceScopesCountry));
}
if (sourceScopesState != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "source.scopes.state[]", sourceScopesState));
}
if (notSourceScopesState != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!source.scopes.state[]", notSourceScopesState));
}
if (sourceScopesCity != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "source.scopes.city[]", sourceScopesCity));
}
if (notSourceScopesCity != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!source.scopes.city[]", notSourceScopesCity));
}
if (sourceScopesLevel != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "source.scopes.level[]", sourceScopesLevel));
}
if (notSourceScopesLevel != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!source.scopes.level[]", notSourceScopesLevel));
}
if (sourceLinksInCountMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("source.links_in_count.min", sourceLinksInCountMin));
}
if (sourceLinksInCountMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("source.links_in_count.max", sourceLinksInCountMax));
}
if (sourceRankingsAlexaRankMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("source.rankings.alexa.rank.min", sourceRankingsAlexaRankMin));
}
if (sourceRankingsAlexaRankMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("source.rankings.alexa.rank.max", sourceRankingsAlexaRankMax));
}
if (sourceRankingsAlexaCountry != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "source.rankings.alexa.country[]", sourceRankingsAlexaCountry));
}
if (socialSharesCountFacebookMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("social_shares_count.facebook.min", socialSharesCountFacebookMin));
}
if (socialSharesCountFacebookMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("social_shares_count.facebook.max", socialSharesCountFacebookMax));
}
if (socialSharesCountGooglePlusMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("social_shares_count.google_plus.min", socialSharesCountGooglePlusMin));
}
if (socialSharesCountGooglePlusMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("social_shares_count.google_plus.max", socialSharesCountGooglePlusMax));
}
if (socialSharesCountLinkedinMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("social_shares_count.linkedin.min", socialSharesCountLinkedinMin));
}
if (socialSharesCountLinkedinMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("social_shares_count.linkedin.max", socialSharesCountLinkedinMax));
}
if (socialSharesCountRedditMin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("social_shares_count.reddit.min", socialSharesCountRedditMin));
}
if (socialSharesCountRedditMax != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("social_shares_count.reddit.max", socialSharesCountRedditMax));
}
if (clusters != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "clusters[]", clusters));
}
if (_return != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "return[]", _return));
}
if (storyId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("story_id", storyId));
}
if (storyUrl != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("story_url", storyUrl));
}
if (storyTitle != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("story_title", storyTitle));
}
if (storyBody != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("story_body", storyBody));
}
if (storyPublishedAt != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("story_published_at", storyPublishedAt));
}
if (storyLanguage != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("story_language", storyLanguage));
}
if (perPage != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json", "text/xml"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "app_id", "app_key" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call listCoveragesValidateBeforeCall(List id, List notId, String title, String body, String text, String translationsEnTitle, String translationsEnBody, String translationsEnText, List linksPermalink, List notLinksPermalink, List language, List notLanguage, String publishedAtStart, String publishedAtEnd, String categoriesTaxonomy, Boolean categoriesConfident, List categoriesId, List notCategoriesId, List categoriesLevel, List notCategoriesLevel, List entitiesTitleText, List notEntitiesTitleText, List entitiesTitleType, List notEntitiesTitleType, List entitiesTitleLinksDbpedia, List notEntitiesTitleLinksDbpedia, List entitiesBodyText, List notEntitiesBodyText, List entitiesBodyType, List notEntitiesBodyType, List entitiesBodyLinksDbpedia, List notEntitiesBodyLinksDbpedia, String sentimentTitlePolarity, String notSentimentTitlePolarity, String sentimentBodyPolarity, String notSentimentBodyPolarity, Integer mediaImagesCountMin, Integer mediaImagesCountMax, Integer mediaImagesWidthMin, Integer mediaImagesWidthMax, Integer mediaImagesHeightMin, Integer mediaImagesHeightMax, Integer mediaImagesContentLengthMin, Integer mediaImagesContentLengthMax, List mediaImagesFormat, List notMediaImagesFormat, Integer mediaVideosCountMin, Integer mediaVideosCountMax, List authorId, List notAuthorId, String authorName, String notAuthorName, List sourceId, List notSourceId, List sourceName, List notSourceName, List sourceDomain, List notSourceDomain, List sourceLocationsCountry, List notSourceLocationsCountry, List sourceLocationsState, List notSourceLocationsState, List sourceLocationsCity, List notSourceLocationsCity, List sourceScopesCountry, List notSourceScopesCountry, List sourceScopesState, List notSourceScopesState, List sourceScopesCity, List notSourceScopesCity, List sourceScopesLevel, List notSourceScopesLevel, Integer sourceLinksInCountMin, Integer sourceLinksInCountMax, Integer sourceRankingsAlexaRankMin, Integer sourceRankingsAlexaRankMax, List sourceRankingsAlexaCountry, Integer socialSharesCountFacebookMin, Integer socialSharesCountFacebookMax, Integer socialSharesCountGooglePlusMin, Integer socialSharesCountGooglePlusMax, Integer socialSharesCountLinkedinMin, Integer socialSharesCountLinkedinMax, Integer socialSharesCountRedditMin, Integer socialSharesCountRedditMax, List clusters, List _return, Long storyId, String storyUrl, String storyTitle, String storyBody, OffsetDateTime storyPublishedAt, String storyLanguage, Integer perPage, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = listCoveragesCall(id, notId, title, body, text, translationsEnTitle, translationsEnBody, translationsEnText, linksPermalink, notLinksPermalink, language, notLanguage, publishedAtStart, publishedAtEnd, categoriesTaxonomy, categoriesConfident, categoriesId, notCategoriesId, categoriesLevel, notCategoriesLevel, entitiesTitleText, notEntitiesTitleText, entitiesTitleType, notEntitiesTitleType, entitiesTitleLinksDbpedia, notEntitiesTitleLinksDbpedia, entitiesBodyText, notEntitiesBodyText, entitiesBodyType, notEntitiesBodyType, entitiesBodyLinksDbpedia, notEntitiesBodyLinksDbpedia, sentimentTitlePolarity, notSentimentTitlePolarity, sentimentBodyPolarity, notSentimentBodyPolarity, mediaImagesCountMin, mediaImagesCountMax, mediaImagesWidthMin, mediaImagesWidthMax, mediaImagesHeightMin, mediaImagesHeightMax, mediaImagesContentLengthMin, mediaImagesContentLengthMax, mediaImagesFormat, notMediaImagesFormat, mediaVideosCountMin, mediaVideosCountMax, authorId, notAuthorId, authorName, notAuthorName, sourceId, notSourceId, sourceName, notSourceName, sourceDomain, notSourceDomain, sourceLocationsCountry, notSourceLocationsCountry, sourceLocationsState, notSourceLocationsState, sourceLocationsCity, notSourceLocationsCity, sourceScopesCountry, notSourceScopesCountry, sourceScopesState, notSourceScopesState, sourceScopesCity, notSourceScopesCity, sourceScopesLevel, notSourceScopesLevel, sourceLinksInCountMin, sourceLinksInCountMax, sourceRankingsAlexaRankMin, sourceRankingsAlexaRankMax, sourceRankingsAlexaCountry, socialSharesCountFacebookMin, socialSharesCountFacebookMax, socialSharesCountGooglePlusMin, socialSharesCountGooglePlusMax, socialSharesCountLinkedinMin, socialSharesCountLinkedinMax, socialSharesCountRedditMin, socialSharesCountRedditMax, clusters, _return, storyId, storyUrl, storyTitle, storyBody, storyPublishedAt, storyLanguage, perPage, _callback);
return localVarCall;
}
private ApiResponse listCoveragesWithHttpInfo(List id, List notId, String title, String body, String text, String translationsEnTitle, String translationsEnBody, String translationsEnText, List linksPermalink, List notLinksPermalink, List language, List notLanguage, String publishedAtStart, String publishedAtEnd, String categoriesTaxonomy, Boolean categoriesConfident, List categoriesId, List notCategoriesId, List categoriesLevel, List notCategoriesLevel, List entitiesTitleText, List notEntitiesTitleText, List entitiesTitleType, List notEntitiesTitleType, List entitiesTitleLinksDbpedia, List notEntitiesTitleLinksDbpedia, List entitiesBodyText, List notEntitiesBodyText, List entitiesBodyType, List notEntitiesBodyType, List entitiesBodyLinksDbpedia, List notEntitiesBodyLinksDbpedia, String sentimentTitlePolarity, String notSentimentTitlePolarity, String sentimentBodyPolarity, String notSentimentBodyPolarity, Integer mediaImagesCountMin, Integer mediaImagesCountMax, Integer mediaImagesWidthMin, Integer mediaImagesWidthMax, Integer mediaImagesHeightMin, Integer mediaImagesHeightMax, Integer mediaImagesContentLengthMin, Integer mediaImagesContentLengthMax, List mediaImagesFormat, List notMediaImagesFormat, Integer mediaVideosCountMin, Integer mediaVideosCountMax, List authorId, List notAuthorId, String authorName, String notAuthorName, List sourceId, List notSourceId, List sourceName, List notSourceName, List sourceDomain, List notSourceDomain, List sourceLocationsCountry, List notSourceLocationsCountry, List sourceLocationsState, List notSourceLocationsState, List sourceLocationsCity, List notSourceLocationsCity, List sourceScopesCountry, List notSourceScopesCountry, List sourceScopesState, List notSourceScopesState, List sourceScopesCity, List notSourceScopesCity, List sourceScopesLevel, List notSourceScopesLevel, Integer sourceLinksInCountMin, Integer sourceLinksInCountMax, Integer sourceRankingsAlexaRankMin, Integer sourceRankingsAlexaRankMax, List sourceRankingsAlexaCountry, Integer socialSharesCountFacebookMin, Integer socialSharesCountFacebookMax, Integer socialSharesCountGooglePlusMin, Integer socialSharesCountGooglePlusMax, Integer socialSharesCountLinkedinMin, Integer socialSharesCountLinkedinMax, Integer socialSharesCountRedditMin, Integer socialSharesCountRedditMax, List clusters, List _return, Long storyId, String storyUrl, String storyTitle, String storyBody, OffsetDateTime storyPublishedAt, String storyLanguage, Integer perPage) throws ApiException {
okhttp3.Call localVarCall = listCoveragesValidateBeforeCall(id, notId, title, body, text, translationsEnTitle, translationsEnBody, translationsEnText, linksPermalink, notLinksPermalink, language, notLanguage, publishedAtStart, publishedAtEnd, categoriesTaxonomy, categoriesConfident, categoriesId, notCategoriesId, categoriesLevel, notCategoriesLevel, entitiesTitleText, notEntitiesTitleText, entitiesTitleType, notEntitiesTitleType, entitiesTitleLinksDbpedia, notEntitiesTitleLinksDbpedia, entitiesBodyText, notEntitiesBodyText, entitiesBodyType, notEntitiesBodyType, entitiesBodyLinksDbpedia, notEntitiesBodyLinksDbpedia, sentimentTitlePolarity, notSentimentTitlePolarity, sentimentBodyPolarity, notSentimentBodyPolarity, mediaImagesCountMin, mediaImagesCountMax, mediaImagesWidthMin, mediaImagesWidthMax, mediaImagesHeightMin, mediaImagesHeightMax, mediaImagesContentLengthMin, mediaImagesContentLengthMax, mediaImagesFormat, notMediaImagesFormat, mediaVideosCountMin, mediaVideosCountMax, authorId, notAuthorId, authorName, notAuthorName, sourceId, notSourceId, sourceName, notSourceName, sourceDomain, notSourceDomain, sourceLocationsCountry, notSourceLocationsCountry, sourceLocationsState, notSourceLocationsState, sourceLocationsCity, notSourceLocationsCity, sourceScopesCountry, notSourceScopesCountry, sourceScopesState, notSourceScopesState, sourceScopesCity, notSourceScopesCity, sourceScopesLevel, notSourceScopesLevel, sourceLinksInCountMin, sourceLinksInCountMax, sourceRankingsAlexaRankMin, sourceRankingsAlexaRankMax, sourceRankingsAlexaCountry, socialSharesCountFacebookMin, socialSharesCountFacebookMax, socialSharesCountGooglePlusMin, socialSharesCountGooglePlusMax, socialSharesCountLinkedinMin, socialSharesCountLinkedinMax, socialSharesCountRedditMin, socialSharesCountRedditMax, clusters, _return, storyId, storyUrl, storyTitle, storyBody, storyPublishedAt, storyLanguage, perPage, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call listCoveragesAsync(List id, List notId, String title, String body, String text, String translationsEnTitle, String translationsEnBody, String translationsEnText, List linksPermalink, List notLinksPermalink, List language, List notLanguage, String publishedAtStart, String publishedAtEnd, String categoriesTaxonomy, Boolean categoriesConfident, List categoriesId, List notCategoriesId, List categoriesLevel, List notCategoriesLevel, List entitiesTitleText, List notEntitiesTitleText, List entitiesTitleType, List notEntitiesTitleType, List entitiesTitleLinksDbpedia, List notEntitiesTitleLinksDbpedia, List entitiesBodyText, List notEntitiesBodyText, List entitiesBodyType, List notEntitiesBodyType, List entitiesBodyLinksDbpedia, List notEntitiesBodyLinksDbpedia, String sentimentTitlePolarity, String notSentimentTitlePolarity, String sentimentBodyPolarity, String notSentimentBodyPolarity, Integer mediaImagesCountMin, Integer mediaImagesCountMax, Integer mediaImagesWidthMin, Integer mediaImagesWidthMax, Integer mediaImagesHeightMin, Integer mediaImagesHeightMax, Integer mediaImagesContentLengthMin, Integer mediaImagesContentLengthMax, List mediaImagesFormat, List notMediaImagesFormat, Integer mediaVideosCountMin, Integer mediaVideosCountMax, List authorId, List notAuthorId, String authorName, String notAuthorName, List sourceId, List notSourceId, List sourceName, List notSourceName, List sourceDomain, List notSourceDomain, List sourceLocationsCountry, List