com.aylien.sita.newsapi.api.DefaultApi Maven / Gradle / Ivy
Show all versions of client Show documentation
/**
* Copyright 2016 Aylien, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aylien.sita.newsapi.api;
import com.aylien.sita.newsapi.ApiClient;
import com.aylien.sita.newsapi.ApiException;
import com.aylien.sita.newsapi.Configuration;
import com.aylien.sita.newsapi.Pair;
import com.aylien.sita.newsapi.models.*;
import com.aylien.sita.newsapi.parameters.*;
import com.sun.jersey.api.client.GenericType;
import org.joda.time.DateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DefaultApi {
private ApiClient apiClient;
public DefaultApi() {
this(Configuration.getDefaultApiClient());
}
public DefaultApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* List autocompletes
* This endpoint is used for getting list of autocompletes by providing a specific term and type.
*
* @param autocompletesParams Autocompletes parameters
* @return Autocompletes
* @throws ApiException if fails to make API call
*/
public Autocompletes listAutocompletes(AutocompletesParams autocompletesParams) throws ApiException {
Object localVarPostBody = null;
// setting builder variables
String type = autocompletesParams.getType();
String term = autocompletesParams.getTerm();
String language = autocompletesParams.getLanguage();
Integer perPage = autocompletesParams.getPerPage();
// verify the required parameter 'type' is set
if (type == null) {
throw new ApiException(400, "Missing the required parameter 'type' when calling listAutocompletes");
}
// verify the required parameter 'term' is set
if (term == null) {
throw new ApiException(400, "Missing the required parameter 'term' when calling listAutocompletes");
}
// create path and map variables
String localVarPath = "/autocompletes".replaceAll("\\{format\\}", "json");
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
List localVarFormParams = new ArrayList();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "type", type));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "term", term));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "language", language));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "per_page", perPage));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/x-www-form-urlencoded"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"basic"};
GenericType localVarReturnType = new GenericType() {
};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* List coverages
* This endpoint is used for finding story coverages based on the parameters provided. The maximum number of related stories returned is 100.
*
* @param coveragesParams Coverages parameters
* @return Coverages
* @throws ApiException if fails to make API call
*/
public Coverages listCoverages(CoveragesParams coveragesParams) throws ApiException {
Object localVarPostBody = null;
// setting builder variables
List id = coveragesParams.getId();
String title = coveragesParams.getTitle();
String body = coveragesParams.getBody();
String text = coveragesParams.getText();
List language = coveragesParams.getLanguage();
String publishedAtStart = coveragesParams.getPublishedAtStart();
String publishedAtEnd = coveragesParams.getPublishedAtEnd();
String categoriesTaxonomy = coveragesParams.getCategoriesTaxonomy();
Boolean categoriesConfident = coveragesParams.getCategoriesConfident();
List categoriesId = coveragesParams.getCategoriesId();
List categoriesLevel = coveragesParams.getCategoriesLevel();
List entitiesTitleText = coveragesParams.getEntitiesTitleText();
List entitiesTitleType = coveragesParams.getEntitiesTitleType();
List entitiesTitleLinksDbpedia = coveragesParams.getEntitiesTitleLinksDbpedia();
List entitiesBodyText = coveragesParams.getEntitiesBodyText();
List entitiesBodyType = coveragesParams.getEntitiesBodyType();
List entitiesBodyLinksDbpedia = coveragesParams.getEntitiesBodyLinksDbpedia();
String sentimentTitlePolarity = coveragesParams.getSentimentTitlePolarity();
String sentimentBodyPolarity = coveragesParams.getSentimentBodyPolarity();
Integer mediaImagesCountMin = coveragesParams.getMediaImagesCountMin();
Integer mediaImagesCountMax = coveragesParams.getMediaImagesCountMax();
Integer mediaImagesWidthMin = coveragesParams.getMediaImagesWidthMin();
Integer mediaImagesWidthMax = coveragesParams.getMediaImagesWidthMax();
Integer mediaImagesHeightMin = coveragesParams.getMediaImagesHeightMin();
Integer mediaImagesHeightMax = coveragesParams.getMediaImagesHeightMax();
Integer mediaImagesContentLengthMin = coveragesParams.getMediaImagesContentLengthMin();
Integer mediaImagesContentLengthMax = coveragesParams.getMediaImagesContentLengthMax();
List mediaImagesFormat = coveragesParams.getMediaImagesFormat();
Integer mediaVideosCountMin = coveragesParams.getMediaVideosCountMin();
Integer mediaVideosCountMax = coveragesParams.getMediaVideosCountMax();
List authorId = coveragesParams.getAuthorId();
String authorName = coveragesParams.getAuthorName();
List sourceId = coveragesParams.getSourceId();
List sourceName = coveragesParams.getSourceName();
List sourceDomain = coveragesParams.getSourceDomain();
List sourceLocationsCountry = coveragesParams.getSourceLocationsCountry();
List sourceLocationsState = coveragesParams.getSourceLocationsState();
List sourceLocationsCity = coveragesParams.getSourceLocationsCity();
List sourceScopesCountry = coveragesParams.getSourceScopesCountry();
List sourceScopesState = coveragesParams.getSourceScopesState();
List sourceScopesCity = coveragesParams.getSourceScopesCity();
List sourceScopesLevel = coveragesParams.getSourceScopesLevel();
Integer sourceLinksInCountMin = coveragesParams.getSourceLinksInCountMin();
Integer sourceLinksInCountMax = coveragesParams.getSourceLinksInCountMax();
Integer sourceRankingsAlexaRankMin = coveragesParams.getSourceRankingsAlexaRankMin();
Integer sourceRankingsAlexaRankMax = coveragesParams.getSourceRankingsAlexaRankMax();
List sourceRankingsAlexaCountry = coveragesParams.getSourceRankingsAlexaCountry();
Integer socialSharesCountFacebookMin = coveragesParams.getSocialSharesCountFacebookMin();
Integer socialSharesCountFacebookMax = coveragesParams.getSocialSharesCountFacebookMax();
Integer socialSharesCountGooglePlusMin = coveragesParams.getSocialSharesCountGooglePlusMin();
Integer socialSharesCountGooglePlusMax = coveragesParams.getSocialSharesCountGooglePlusMax();
Integer socialSharesCountLinkedinMin = coveragesParams.getSocialSharesCountLinkedinMin();
Integer socialSharesCountLinkedinMax = coveragesParams.getSocialSharesCountLinkedinMax();
Integer socialSharesCountRedditMin = coveragesParams.getSocialSharesCountRedditMin();
Integer socialSharesCountRedditMax = coveragesParams.getSocialSharesCountRedditMax();
Boolean cluster = coveragesParams.getCluster();
String clusterAlgorithm = coveragesParams.getClusterAlgorithm();
List _return = coveragesParams.get_return();
Long storyId = coveragesParams.getStoryId();
String storyUrl = coveragesParams.getStoryUrl();
String storyTitle = coveragesParams.getStoryTitle();
String storyBody = coveragesParams.getStoryBody();
DateTime storyPublishedAt = coveragesParams.getStoryPublishedAt();
String storyLanguage = coveragesParams.getStoryLanguage();
Integer perPage = coveragesParams.getPerPage();
// create path and map variables
String localVarPath = "/coverages".replaceAll("\\{format\\}", "json");
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
List localVarFormParams = new ArrayList();
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "id[]", id));
localVarFormParams.addAll(apiClient.parameterToPairs("", "title", title));
localVarFormParams.addAll(apiClient.parameterToPairs("", "body", body));
localVarFormParams.addAll(apiClient.parameterToPairs("", "text", text));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "language[]", language));
localVarFormParams.addAll(apiClient.parameterToPairs("", "published_at.start", publishedAtStart));
localVarFormParams.addAll(apiClient.parameterToPairs("", "published_at.end", publishedAtEnd));
localVarFormParams.addAll(apiClient.parameterToPairs("", "categories.taxonomy", categoriesTaxonomy));
localVarFormParams.addAll(apiClient.parameterToPairs("", "categories.confident", categoriesConfident));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "categories.id[]", categoriesId));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "categories.level[]", categoriesLevel));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.title.text[]", entitiesTitleText));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.title.type[]", entitiesTitleType));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.title.links.dbpedia[]", entitiesTitleLinksDbpedia));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.body.text[]", entitiesBodyText));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.body.type[]", entitiesBodyType));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.body.links.dbpedia[]", entitiesBodyLinksDbpedia));
localVarFormParams.addAll(apiClient.parameterToPairs("", "sentiment.title.polarity", sentimentTitlePolarity));
localVarFormParams.addAll(apiClient.parameterToPairs("", "sentiment.body.polarity", sentimentBodyPolarity));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.count.min", mediaImagesCountMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.count.max", mediaImagesCountMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.width.min", mediaImagesWidthMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.width.min", mediaImagesWidthMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.height.min", mediaImagesHeightMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.height.max", mediaImagesHeightMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.min", mediaImagesContentLengthMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.max", mediaImagesContentLengthMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.format[]", mediaImagesFormat));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.videos.count.min", mediaVideosCountMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.videos.count.max", mediaVideosCountMax));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "author.id[]", authorId));
localVarFormParams.addAll(apiClient.parameterToPairs("", "author.name", authorName));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.id[]", sourceId));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.name[]", sourceName));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.domain[]", sourceDomain));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.locations.country[]", sourceLocationsCountry));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.locations.state[]", sourceLocationsState));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.locations.city[]", sourceLocationsCity));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.country[]", sourceScopesCountry));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.state[]", sourceScopesState));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.city[]", sourceScopesCity));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.level[]", sourceScopesLevel));
localVarFormParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.min", sourceLinksInCountMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.max", sourceLinksInCountMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.min", sourceRankingsAlexaRankMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.max", sourceRankingsAlexaRankMax));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.rankings.alexa.country[]", sourceRankingsAlexaCountry));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.min", socialSharesCountFacebookMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.max", socialSharesCountFacebookMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.min", socialSharesCountGooglePlusMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.max", socialSharesCountGooglePlusMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.min", socialSharesCountLinkedinMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.max", socialSharesCountLinkedinMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.min", socialSharesCountRedditMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.max", socialSharesCountRedditMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "cluster", cluster));
localVarFormParams.addAll(apiClient.parameterToPairs("", "cluster.algorithm", clusterAlgorithm));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "return[]", _return));
localVarFormParams.addAll(apiClient.parameterToPairs("", "story_id", storyId));
localVarFormParams.addAll(apiClient.parameterToPairs("", "story_url", storyUrl));
localVarFormParams.addAll(apiClient.parameterToPairs("", "story_title", storyTitle));
localVarFormParams.addAll(apiClient.parameterToPairs("", "story_body", storyBody));
localVarFormParams.addAll(apiClient.parameterToPairs("", "story_published_at", storyPublishedAt));
localVarFormParams.addAll(apiClient.parameterToPairs("", "story_language", storyLanguage));
localVarFormParams.addAll(apiClient.parameterToPairs("", "per_page", perPage));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/x-www-form-urlencoded"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"basic"};
GenericType localVarReturnType = new GenericType() {
};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* List histograms
* This endpoint is used for getting histograms based on the `field` parameter passed to the API.
*
* @param histogramsParams Histograms parameters
* @return Histograms
* @throws ApiException if fails to make API call
*/
public Histograms listHistograms(HistogramsParams histogramsParams) throws ApiException {
Object localVarPostBody = null;
// setting builder variables
List id = histogramsParams.getId();
String title = histogramsParams.getTitle();
String body = histogramsParams.getBody();
String text = histogramsParams.getText();
List language = histogramsParams.getLanguage();
String publishedAtStart = histogramsParams.getPublishedAtStart();
String publishedAtEnd = histogramsParams.getPublishedAtEnd();
String categoriesTaxonomy = histogramsParams.getCategoriesTaxonomy();
Boolean categoriesConfident = histogramsParams.getCategoriesConfident();
List categoriesId = histogramsParams.getCategoriesId();
List categoriesLevel = histogramsParams.getCategoriesLevel();
List entitiesTitleText = histogramsParams.getEntitiesTitleText();
List entitiesTitleType = histogramsParams.getEntitiesTitleType();
List entitiesTitleLinksDbpedia = histogramsParams.getEntitiesTitleLinksDbpedia();
List entitiesBodyText = histogramsParams.getEntitiesBodyText();
List entitiesBodyType = histogramsParams.getEntitiesBodyType();
List entitiesBodyLinksDbpedia = histogramsParams.getEntitiesBodyLinksDbpedia();
String sentimentTitlePolarity = histogramsParams.getSentimentTitlePolarity();
String sentimentBodyPolarity = histogramsParams.getSentimentBodyPolarity();
Integer mediaImagesCountMin = histogramsParams.getMediaImagesCountMin();
Integer mediaImagesCountMax = histogramsParams.getMediaImagesCountMax();
Integer mediaImagesWidthMin = histogramsParams.getMediaImagesWidthMin();
Integer mediaImagesWidthMax = histogramsParams.getMediaImagesWidthMax();
Integer mediaImagesHeightMin = histogramsParams.getMediaImagesHeightMin();
Integer mediaImagesHeightMax = histogramsParams.getMediaImagesHeightMax();
Integer mediaImagesContentLengthMin = histogramsParams.getMediaImagesContentLengthMin();
Integer mediaImagesContentLengthMax = histogramsParams.getMediaImagesContentLengthMax();
List mediaImagesFormat = histogramsParams.getMediaImagesFormat();
Integer mediaVideosCountMin = histogramsParams.getMediaVideosCountMin();
Integer mediaVideosCountMax = histogramsParams.getMediaVideosCountMax();
List authorId = histogramsParams.getAuthorId();
String authorName = histogramsParams.getAuthorName();
List sourceId = histogramsParams.getSourceId();
List sourceName = histogramsParams.getSourceName();
List sourceDomain = histogramsParams.getSourceDomain();
List sourceLocationsCountry = histogramsParams.getSourceLocationsCountry();
List sourceLocationsState = histogramsParams.getSourceLocationsState();
List sourceLocationsCity = histogramsParams.getSourceLocationsCity();
List sourceScopesCountry = histogramsParams.getSourceScopesCountry();
List sourceScopesState = histogramsParams.getSourceScopesState();
List sourceScopesCity = histogramsParams.getSourceScopesCity();
List sourceScopesLevel = histogramsParams.getSourceScopesLevel();
Integer sourceLinksInCountMin = histogramsParams.getSourceLinksInCountMin();
Integer sourceLinksInCountMax = histogramsParams.getSourceLinksInCountMax();
Integer sourceRankingsAlexaRankMin = histogramsParams.getSourceRankingsAlexaRankMin();
Integer sourceRankingsAlexaRankMax = histogramsParams.getSourceRankingsAlexaRankMax();
List sourceRankingsAlexaCountry = histogramsParams.getSourceRankingsAlexaCountry();
Integer socialSharesCountFacebookMin = histogramsParams.getSocialSharesCountFacebookMin();
Integer socialSharesCountFacebookMax = histogramsParams.getSocialSharesCountFacebookMax();
Integer socialSharesCountGooglePlusMin = histogramsParams.getSocialSharesCountGooglePlusMin();
Integer socialSharesCountGooglePlusMax = histogramsParams.getSocialSharesCountGooglePlusMax();
Integer socialSharesCountLinkedinMin = histogramsParams.getSocialSharesCountLinkedinMin();
Integer socialSharesCountLinkedinMax = histogramsParams.getSocialSharesCountLinkedinMax();
Integer socialSharesCountRedditMin = histogramsParams.getSocialSharesCountRedditMin();
Integer socialSharesCountRedditMax = histogramsParams.getSocialSharesCountRedditMax();
Integer intervalStart = histogramsParams.getIntervalStart();
Integer intervalEnd = histogramsParams.getIntervalEnd();
Integer intervalWidth = histogramsParams.getIntervalWidth();
String field = histogramsParams.getField();
// create path and map variables
String localVarPath = "/histograms".replaceAll("\\{format\\}", "json");
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
List localVarFormParams = new ArrayList();
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "id[]", id));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "title", title));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "body", body));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "text", text));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "language[]", language));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "published_at.start", publishedAtStart));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "published_at.end", publishedAtEnd));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "categories.taxonomy", categoriesTaxonomy));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "categories.confident", categoriesConfident));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "categories.id[]", categoriesId));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "categories.level[]", categoriesLevel));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.text[]", entitiesTitleText));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.type[]", entitiesTitleType));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.links.dbpedia[]", entitiesTitleLinksDbpedia));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.text[]", entitiesBodyText));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.type[]", entitiesBodyType));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.links.dbpedia[]", entitiesBodyLinksDbpedia));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sentiment.title.polarity", sentimentTitlePolarity));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sentiment.body.polarity", sentimentBodyPolarity));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.count.min", mediaImagesCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.count.max", mediaImagesCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.width.min", mediaImagesWidthMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.width.max", mediaImagesWidthMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.height.min", mediaImagesHeightMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.height.max", mediaImagesHeightMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.min", mediaImagesContentLengthMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.max", mediaImagesContentLengthMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "media.images.format[]", mediaImagesFormat));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.videos.count.min", mediaVideosCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.videos.count.max", mediaVideosCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "author.id[]", authorId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "author.name", authorName));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.id[]", sourceId));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.name[]", sourceName));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.domain[]", sourceDomain));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.country[]", sourceLocationsCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.state[]", sourceLocationsState));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.city[]", sourceLocationsCity));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.country[]", sourceScopesCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.state[]", sourceScopesState));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.city[]", sourceScopesCity));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.level[]", sourceScopesLevel));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.min", sourceLinksInCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.max", sourceLinksInCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.min", sourceRankingsAlexaRankMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.max", sourceRankingsAlexaRankMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.rankings.alexa.country[]", sourceRankingsAlexaCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.min", socialSharesCountFacebookMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.max", socialSharesCountFacebookMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.min", socialSharesCountGooglePlusMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.max", socialSharesCountGooglePlusMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.min", socialSharesCountLinkedinMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.max", socialSharesCountLinkedinMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.min", socialSharesCountRedditMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.max", socialSharesCountRedditMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "interval.start", intervalStart));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "interval.end", intervalEnd));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "interval.width", intervalWidth));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "field", field));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/x-www-form-urlencoded"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"basic"};
GenericType localVarReturnType = new GenericType() {
};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* List related stories
* This endpoint is used for finding related stories based on the parameters provided. The maximum number of related stories returned is 100.
*
* @param relatedStoriesParams Related Stories parameters
* @return RelatedStories
* @throws ApiException if fails to make API call
*/
public RelatedStories listRelatedStories(RelatedStoriesParams relatedStoriesParams) throws ApiException {
Object localVarPostBody = null;
// setting builder variables
List id = relatedStoriesParams.getId();
String title = relatedStoriesParams.getTitle();
String body = relatedStoriesParams.getBody();
String text = relatedStoriesParams.getText();
List language = relatedStoriesParams.getLanguage();
String publishedAtStart = relatedStoriesParams.getPublishedAtStart();
String publishedAtEnd = relatedStoriesParams.getPublishedAtEnd();
String categoriesTaxonomy = relatedStoriesParams.getCategoriesTaxonomy();
Boolean categoriesConfident = relatedStoriesParams.getCategoriesConfident();
List categoriesId = relatedStoriesParams.getCategoriesId();
List categoriesLevel = relatedStoriesParams.getCategoriesLevel();
List entitiesTitleText = relatedStoriesParams.getEntitiesTitleText();
List entitiesTitleType = relatedStoriesParams.getEntitiesTitleType();
List entitiesTitleLinksDbpedia = relatedStoriesParams.getEntitiesTitleLinksDbpedia();
List entitiesBodyText = relatedStoriesParams.getEntitiesBodyText();
List entitiesBodyType = relatedStoriesParams.getEntitiesBodyType();
List entitiesBodyLinksDbpedia = relatedStoriesParams.getEntitiesBodyLinksDbpedia();
String sentimentTitlePolarity = relatedStoriesParams.getSentimentTitlePolarity();
String sentimentBodyPolarity = relatedStoriesParams.getSentimentBodyPolarity();
Integer mediaImagesCountMin = relatedStoriesParams.getMediaImagesCountMin();
Integer mediaImagesCountMax = relatedStoriesParams.getMediaImagesCountMax();
Integer mediaImagesWidthMin = relatedStoriesParams.getMediaImagesWidthMin();
Integer mediaImagesWidthMax = relatedStoriesParams.getMediaImagesWidthMax();
Integer mediaImagesHeightMin = relatedStoriesParams.getMediaImagesHeightMin();
Integer mediaImagesHeightMax = relatedStoriesParams.getMediaImagesHeightMax();
Integer mediaImagesContentLengthMin = relatedStoriesParams.getMediaImagesContentLengthMin();
Integer mediaImagesContentLengthMax = relatedStoriesParams.getMediaImagesContentLengthMax();
List mediaImagesFormat = relatedStoriesParams.getMediaImagesFormat();
Integer mediaVideosCountMin = relatedStoriesParams.getMediaVideosCountMin();
Integer mediaVideosCountMax = relatedStoriesParams.getMediaVideosCountMax();
List authorId = relatedStoriesParams.getAuthorId();
String authorName = relatedStoriesParams.getAuthorName();
List sourceId = relatedStoriesParams.getSourceId();
List sourceName = relatedStoriesParams.getSourceName();
List sourceDomain = relatedStoriesParams.getSourceDomain();
List sourceLocationsCountry = relatedStoriesParams.getSourceLocationsCountry();
List sourceLocationsState = relatedStoriesParams.getSourceLocationsState();
List sourceLocationsCity = relatedStoriesParams.getSourceLocationsCity();
List sourceScopesCountry = relatedStoriesParams.getSourceScopesCountry();
List sourceScopesState = relatedStoriesParams.getSourceScopesState();
List sourceScopesCity = relatedStoriesParams.getSourceScopesCity();
List sourceScopesLevel = relatedStoriesParams.getSourceScopesLevel();
Integer sourceLinksInCountMin = relatedStoriesParams.getSourceLinksInCountMin();
Integer sourceLinksInCountMax = relatedStoriesParams.getSourceLinksInCountMax();
Integer sourceRankingsAlexaRankMin = relatedStoriesParams.getSourceRankingsAlexaRankMin();
Integer sourceRankingsAlexaRankMax = relatedStoriesParams.getSourceRankingsAlexaRankMax();
List sourceRankingsAlexaCountry = relatedStoriesParams.getSourceRankingsAlexaCountry();
Integer socialSharesCountFacebookMin = relatedStoriesParams.getSocialSharesCountFacebookMin();
Integer socialSharesCountFacebookMax = relatedStoriesParams.getSocialSharesCountFacebookMax();
Integer socialSharesCountGooglePlusMin = relatedStoriesParams.getSocialSharesCountGooglePlusMin();
Integer socialSharesCountGooglePlusMax = relatedStoriesParams.getSocialSharesCountGooglePlusMax();
Integer socialSharesCountLinkedinMin = relatedStoriesParams.getSocialSharesCountLinkedinMin();
Integer socialSharesCountLinkedinMax = relatedStoriesParams.getSocialSharesCountLinkedinMax();
Integer socialSharesCountRedditMin = relatedStoriesParams.getSocialSharesCountRedditMin();
Integer socialSharesCountRedditMax = relatedStoriesParams.getSocialSharesCountRedditMax();
Boolean cluster = relatedStoriesParams.getCluster();
String clusterAlgorithm = relatedStoriesParams.getClusterAlgorithm();
List _return = relatedStoriesParams.get_return();
Long storyId = relatedStoriesParams.getStoryId();
String storyUrl = relatedStoriesParams.getStoryUrl();
String storyTitle = relatedStoriesParams.getStoryTitle();
String storyBody = relatedStoriesParams.getStoryBody();
String boostBy = relatedStoriesParams.getBoostBy();
String storyLanguage = relatedStoriesParams.getStoryLanguage();
Integer perPage = relatedStoriesParams.getPerPage();
// create path and map variables
String localVarPath = "/related_stories".replaceAll("\\{format\\}", "json");
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
List localVarFormParams = new ArrayList();
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "id[]", id));
localVarFormParams.addAll(apiClient.parameterToPairs("", "title", title));
localVarFormParams.addAll(apiClient.parameterToPairs("", "body", body));
localVarFormParams.addAll(apiClient.parameterToPairs("", "text", text));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "language[]", language));
localVarFormParams.addAll(apiClient.parameterToPairs("", "published_at.start", publishedAtStart));
localVarFormParams.addAll(apiClient.parameterToPairs("", "published_at.end", publishedAtEnd));
localVarFormParams.addAll(apiClient.parameterToPairs("", "categories.taxonomy", categoriesTaxonomy));
localVarFormParams.addAll(apiClient.parameterToPairs("", "categories.confident", categoriesConfident));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "categories.id[]", categoriesId));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "categories.level[]", categoriesLevel));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.title.text[]", entitiesTitleText));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.title.type[]", entitiesTitleType));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.title.links.dbpedia[]", entitiesTitleLinksDbpedia));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.body.text[]", entitiesBodyText));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.body.type[]", entitiesBodyType));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "entities.body.links.dbpedia[]", entitiesBodyLinksDbpedia));
localVarFormParams.addAll(apiClient.parameterToPairs("", "sentiment.title.polarity", sentimentTitlePolarity));
localVarFormParams.addAll(apiClient.parameterToPairs("", "sentiment.body.polarity", sentimentBodyPolarity));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.count.min", mediaImagesCountMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.count.max", mediaImagesCountMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.width.min", mediaImagesWidthMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.width.min", mediaImagesWidthMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.height.min", mediaImagesHeightMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.height.max", mediaImagesHeightMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.min", mediaImagesContentLengthMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.max", mediaImagesContentLengthMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.images.format[]", mediaImagesFormat));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.videos.count.min", mediaVideosCountMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "media.videos.count.max", mediaVideosCountMax));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "author.id[]", authorId));
localVarFormParams.addAll(apiClient.parameterToPairs("", "author.name", authorName));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.id[]", sourceId));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.name[]", sourceName));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.domain[]", sourceDomain));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.locations.country[]", sourceLocationsCountry));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.locations.state[]", sourceLocationsState));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.locations.city[]", sourceLocationsCity));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.country[]", sourceScopesCountry));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.state[]", sourceScopesState));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.city[]", sourceScopesCity));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.level[]", sourceScopesLevel));
localVarFormParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.min", sourceLinksInCountMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.max", sourceLinksInCountMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.min", sourceRankingsAlexaRankMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.max", sourceRankingsAlexaRankMax));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "source.rankings.alexa.country[]", sourceRankingsAlexaCountry));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.min", socialSharesCountFacebookMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.max", socialSharesCountFacebookMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.min", socialSharesCountGooglePlusMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.max", socialSharesCountGooglePlusMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.min", socialSharesCountLinkedinMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.max", socialSharesCountLinkedinMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.min", socialSharesCountRedditMin));
localVarFormParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.max", socialSharesCountRedditMax));
localVarFormParams.addAll(apiClient.parameterToPairs("", "cluster", cluster));
localVarFormParams.addAll(apiClient.parameterToPairs("", "cluster.algorithm", clusterAlgorithm));
localVarFormParams.addAll(apiClient.parameterToPairs("multi", "return[]", _return));
localVarFormParams.addAll(apiClient.parameterToPairs("", "story_id", storyId));
localVarFormParams.addAll(apiClient.parameterToPairs("", "story_url", storyUrl));
localVarFormParams.addAll(apiClient.parameterToPairs("", "story_title", storyTitle));
localVarFormParams.addAll(apiClient.parameterToPairs("", "story_body", storyBody));
localVarFormParams.addAll(apiClient.parameterToPairs("", "boost_by", boostBy));
localVarFormParams.addAll(apiClient.parameterToPairs("", "story_language", storyLanguage));
localVarFormParams.addAll(apiClient.parameterToPairs("", "per_page", perPage));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/x-www-form-urlencoded"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"basic"};
GenericType localVarReturnType = new GenericType() {
};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* List Stories
* This endpoint is used for getting a list of stories.
*
* @param storiesParams Stories parameters
* @return Stories
* @throws ApiException if fails to make API call
*/
public Stories listStories(StoriesParams storiesParams) throws ApiException {
Object localVarPostBody = null;
// setting builder variables
List id = storiesParams.getId();
String title = storiesParams.getTitle();
String body = storiesParams.getBody();
String text = storiesParams.getText();
List language = storiesParams.getLanguage();
String publishedAtStart = storiesParams.getPublishedAtStart();
String publishedAtEnd = storiesParams.getPublishedAtEnd();
String categoriesTaxonomy = storiesParams.getCategoriesTaxonomy();
Boolean categoriesConfident = storiesParams.getCategoriesConfident();
List categoriesId = storiesParams.getCategoriesId();
List categoriesLevel = storiesParams.getCategoriesLevel();
List entitiesTitleText = storiesParams.getEntitiesTitleText();
List entitiesTitleType = storiesParams.getEntitiesTitleType();
List entitiesTitleLinksDbpedia = storiesParams.getEntitiesTitleLinksDbpedia();
List entitiesBodyText = storiesParams.getEntitiesBodyText();
List entitiesBodyType = storiesParams.getEntitiesBodyType();
List entitiesBodyLinksDbpedia = storiesParams.getEntitiesBodyLinksDbpedia();
String sentimentTitlePolarity = storiesParams.getSentimentTitlePolarity();
String sentimentBodyPolarity = storiesParams.getSentimentBodyPolarity();
Integer mediaImagesCountMin = storiesParams.getMediaImagesCountMin();
Integer mediaImagesCountMax = storiesParams.getMediaImagesCountMax();
Integer mediaImagesWidthMin = storiesParams.getMediaImagesWidthMin();
Integer mediaImagesWidthMax = storiesParams.getMediaImagesWidthMax();
Integer mediaImagesHeightMin = storiesParams.getMediaImagesHeightMin();
Integer mediaImagesHeightMax = storiesParams.getMediaImagesHeightMax();
Integer mediaImagesContentLengthMin = storiesParams.getMediaImagesContentLengthMin();
Integer mediaImagesContentLengthMax = storiesParams.getMediaImagesContentLengthMax();
List mediaImagesFormat = storiesParams.getMediaImagesFormat();
Integer mediaVideosCountMin = storiesParams.getMediaVideosCountMin();
Integer mediaVideosCountMax = storiesParams.getMediaVideosCountMax();
List authorId = storiesParams.getAuthorId();
String authorName = storiesParams.getAuthorName();
List sourceId = storiesParams.getSourceId();
List sourceName = storiesParams.getSourceName();
List sourceDomain = storiesParams.getSourceDomain();
List sourceLocationsCountry = storiesParams.getSourceLocationsCountry();
List sourceLocationsState = storiesParams.getSourceLocationsState();
List sourceLocationsCity = storiesParams.getSourceLocationsCity();
List sourceScopesCountry = storiesParams.getSourceScopesCountry();
List sourceScopesState = storiesParams.getSourceScopesState();
List sourceScopesCity = storiesParams.getSourceScopesCity();
List sourceScopesLevel = storiesParams.getSourceScopesLevel();
Integer sourceLinksInCountMin = storiesParams.getSourceLinksInCountMin();
Integer sourceLinksInCountMax = storiesParams.getSourceLinksInCountMax();
Integer sourceRankingsAlexaRankMin = storiesParams.getSourceRankingsAlexaRankMin();
Integer sourceRankingsAlexaRankMax = storiesParams.getSourceRankingsAlexaRankMax();
List sourceRankingsAlexaCountry = storiesParams.getSourceRankingsAlexaCountry();
Integer socialSharesCountFacebookMin = storiesParams.getSocialSharesCountFacebookMin();
Integer socialSharesCountFacebookMax = storiesParams.getSocialSharesCountFacebookMax();
Integer socialSharesCountGooglePlusMin = storiesParams.getSocialSharesCountGooglePlusMin();
Integer socialSharesCountGooglePlusMax = storiesParams.getSocialSharesCountGooglePlusMax();
Integer socialSharesCountLinkedinMin = storiesParams.getSocialSharesCountLinkedinMin();
Integer socialSharesCountLinkedinMax = storiesParams.getSocialSharesCountLinkedinMax();
Integer socialSharesCountRedditMin = storiesParams.getSocialSharesCountRedditMin();
Integer socialSharesCountRedditMax = storiesParams.getSocialSharesCountRedditMax();
Boolean cluster = storiesParams.getCluster();
String clusterAlgorithm = storiesParams.getClusterAlgorithm();
List _return = storiesParams.get_return();
String sortBy = storiesParams.getSortBy();
String sortDirection = storiesParams.getSortDirection();
String cursor = storiesParams.getCursor();
Integer perPage = storiesParams.getPerPage();
// create path and map variables
String localVarPath = "/stories".replaceAll("\\{format\\}", "json");
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
List localVarFormParams = new ArrayList();
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "id[]", id));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "title", title));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "body", body));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "text", text));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "language[]", language));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "published_at.start", publishedAtStart));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "published_at.end", publishedAtEnd));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "categories.taxonomy", categoriesTaxonomy));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "categories.confident", categoriesConfident));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "categories.id[]", categoriesId));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "categories.level[]", categoriesLevel));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.text[]", entitiesTitleText));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.type[]", entitiesTitleType));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.links.dbpedia[]", entitiesTitleLinksDbpedia));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.text[]", entitiesBodyText));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.type[]", entitiesBodyType));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.links.dbpedia[]", entitiesBodyLinksDbpedia));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sentiment.title.polarity", sentimentTitlePolarity));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sentiment.body.polarity", sentimentBodyPolarity));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.count.min", mediaImagesCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.count.max", mediaImagesCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.width.min", mediaImagesWidthMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.width.max", mediaImagesWidthMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.height.min", mediaImagesHeightMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.height.max", mediaImagesHeightMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.min", mediaImagesContentLengthMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.max", mediaImagesContentLengthMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "media.images.format[]", mediaImagesFormat));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.videos.count.min", mediaVideosCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.videos.count.max", mediaVideosCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "author.id[]", authorId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "author.name", authorName));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.id[]", sourceId));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.name[]", sourceName));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.domain[]", sourceDomain));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.country[]", sourceLocationsCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.state[]", sourceLocationsState));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.city[]", sourceLocationsCity));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.country[]", sourceScopesCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.state[]", sourceScopesState));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.city[]", sourceScopesCity));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.level[]", sourceScopesLevel));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.min", sourceLinksInCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.max", sourceLinksInCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.min", sourceRankingsAlexaRankMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.max", sourceRankingsAlexaRankMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.rankings.alexa.country[]", sourceRankingsAlexaCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.min", socialSharesCountFacebookMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.max", socialSharesCountFacebookMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.min", socialSharesCountGooglePlusMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.max", socialSharesCountGooglePlusMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.min", socialSharesCountLinkedinMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.max", socialSharesCountLinkedinMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.min", socialSharesCountRedditMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.max", socialSharesCountRedditMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cluster", cluster));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cluster.algorithm", clusterAlgorithm));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "return[]", _return));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort_by", sortBy));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort_direction", sortDirection));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "per_page", perPage));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/x-www-form-urlencoded"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"basic"};
GenericType localVarReturnType = new GenericType() {
};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* List time series
* This endpoint is used for getting time series by stories.
*
* @param timeSeriesParams Time Series parameters
* @return TimeSeriesList
* @throws ApiException if fails to make API call
*/
public TimeSeriesList listTimeSeries(TimeSeriesParams timeSeriesParams) throws ApiException {
Object localVarPostBody = null;
// setting builder variables
List id = timeSeriesParams.getId();
String title = timeSeriesParams.getTitle();
String body = timeSeriesParams.getBody();
String text = timeSeriesParams.getText();
List language = timeSeriesParams.getLanguage();
String categoriesTaxonomy = timeSeriesParams.getCategoriesTaxonomy();
Boolean categoriesConfident = timeSeriesParams.getCategoriesConfident();
List categoriesId = timeSeriesParams.getCategoriesId();
List categoriesLevel = timeSeriesParams.getCategoriesLevel();
List entitiesTitleText = timeSeriesParams.getEntitiesTitleText();
List entitiesTitleType = timeSeriesParams.getEntitiesTitleType();
List entitiesTitleLinksDbpedia = timeSeriesParams.getEntitiesTitleLinksDbpedia();
List entitiesBodyText = timeSeriesParams.getEntitiesBodyText();
List entitiesBodyType = timeSeriesParams.getEntitiesBodyType();
List entitiesBodyLinksDbpedia = timeSeriesParams.getEntitiesBodyLinksDbpedia();
String sentimentTitlePolarity = timeSeriesParams.getSentimentTitlePolarity();
String sentimentBodyPolarity = timeSeriesParams.getSentimentBodyPolarity();
Integer mediaImagesCountMin = timeSeriesParams.getMediaImagesCountMin();
Integer mediaImagesCountMax = timeSeriesParams.getMediaImagesCountMax();
Integer mediaImagesWidthMin = timeSeriesParams.getMediaImagesWidthMin();
Integer mediaImagesWidthMax = timeSeriesParams.getMediaImagesWidthMax();
Integer mediaImagesHeightMin = timeSeriesParams.getMediaImagesHeightMin();
Integer mediaImagesHeightMax = timeSeriesParams.getMediaImagesHeightMax();
Integer mediaImagesContentLengthMin = timeSeriesParams.getMediaImagesContentLengthMin();
Integer mediaImagesContentLengthMax = timeSeriesParams.getMediaImagesContentLengthMax();
List mediaImagesFormat = timeSeriesParams.getMediaImagesFormat();
Integer mediaVideosCountMin = timeSeriesParams.getMediaVideosCountMin();
Integer mediaVideosCountMax = timeSeriesParams.getMediaVideosCountMax();
List authorId = timeSeriesParams.getAuthorId();
String authorName = timeSeriesParams.getAuthorName();
List sourceId = timeSeriesParams.getSourceId();
List sourceName = timeSeriesParams.getSourceName();
List sourceDomain = timeSeriesParams.getSourceDomain();
List sourceLocationsCountry = timeSeriesParams.getSourceLocationsCountry();
List sourceLocationsState = timeSeriesParams.getSourceLocationsState();
List sourceLocationsCity = timeSeriesParams.getSourceLocationsCity();
List sourceScopesCountry = timeSeriesParams.getSourceScopesCountry();
List sourceScopesState = timeSeriesParams.getSourceScopesState();
List sourceScopesCity = timeSeriesParams.getSourceScopesCity();
List sourceScopesLevel = timeSeriesParams.getSourceScopesLevel();
Integer sourceLinksInCountMin = timeSeriesParams.getSourceLinksInCountMin();
Integer sourceLinksInCountMax = timeSeriesParams.getSourceLinksInCountMax();
Integer sourceRankingsAlexaRankMin = timeSeriesParams.getSourceRankingsAlexaRankMin();
Integer sourceRankingsAlexaRankMax = timeSeriesParams.getSourceRankingsAlexaRankMax();
List sourceRankingsAlexaCountry = timeSeriesParams.getSourceRankingsAlexaCountry();
Integer socialSharesCountFacebookMin = timeSeriesParams.getSocialSharesCountFacebookMin();
Integer socialSharesCountFacebookMax = timeSeriesParams.getSocialSharesCountFacebookMax();
Integer socialSharesCountGooglePlusMin = timeSeriesParams.getSocialSharesCountGooglePlusMin();
Integer socialSharesCountGooglePlusMax = timeSeriesParams.getSocialSharesCountGooglePlusMax();
Integer socialSharesCountLinkedinMin = timeSeriesParams.getSocialSharesCountLinkedinMin();
Integer socialSharesCountLinkedinMax = timeSeriesParams.getSocialSharesCountLinkedinMax();
Integer socialSharesCountRedditMin = timeSeriesParams.getSocialSharesCountRedditMin();
Integer socialSharesCountRedditMax = timeSeriesParams.getSocialSharesCountRedditMax();
String publishedAtStart = timeSeriesParams.getPublishedAtStart();
String publishedAtEnd = timeSeriesParams.getPublishedAtEnd();
String period = timeSeriesParams.getPeriod();
// create path and map variables
String localVarPath = "/time_series".replaceAll("\\{format\\}", "json");
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
List localVarFormParams = new ArrayList();
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "id[]", id));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "title", title));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "body", body));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "text", text));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "language[]", language));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "categories.taxonomy", categoriesTaxonomy));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "categories.confident", categoriesConfident));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "categories.id[]", categoriesId));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "categories.level[]", categoriesLevel));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.text[]", entitiesTitleText));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.type[]", entitiesTitleType));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.links.dbpedia[]", entitiesTitleLinksDbpedia));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.text[]", entitiesBodyText));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.type[]", entitiesBodyType));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.links.dbpedia[]", entitiesBodyLinksDbpedia));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sentiment.title.polarity", sentimentTitlePolarity));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sentiment.body.polarity", sentimentBodyPolarity));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.count.min", mediaImagesCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.count.max", mediaImagesCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.width.min", mediaImagesWidthMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.width.max", mediaImagesWidthMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.height.min", mediaImagesHeightMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.height.max", mediaImagesHeightMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.min", mediaImagesContentLengthMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.max", mediaImagesContentLengthMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "media.images.format[]", mediaImagesFormat));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.videos.count.min", mediaVideosCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.videos.count.max", mediaVideosCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "author.id[]", authorId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "author.name", authorName));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.id[]", sourceId));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.name[]", sourceName));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.domain[]", sourceDomain));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.country[]", sourceLocationsCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.state[]", sourceLocationsState));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.city[]", sourceLocationsCity));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.country[]", sourceScopesCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.state[]", sourceScopesState));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.city[]", sourceScopesCity));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.level[]", sourceScopesLevel));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.min", sourceLinksInCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.max", sourceLinksInCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.min", sourceRankingsAlexaRankMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.max", sourceRankingsAlexaRankMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.rankings.alexa.country[]", sourceRankingsAlexaCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.min", socialSharesCountFacebookMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.max", socialSharesCountFacebookMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.min", socialSharesCountGooglePlusMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.max", socialSharesCountGooglePlusMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.min", socialSharesCountLinkedinMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.max", socialSharesCountLinkedinMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.min", socialSharesCountRedditMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.max", socialSharesCountRedditMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "published_at.start", publishedAtStart));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "published_at.end", publishedAtEnd));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "period", period));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/x-www-form-urlencoded"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"basic"};
GenericType localVarReturnType = new GenericType() {
};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* List trends
* This endpoint is used for finding trends based on stories.
*
* @param trendsParams Trends parameters
* @return Trends
* @throws ApiException if fails to make API call
*/
public Trends listTrends(TrendsParams trendsParams) throws ApiException {
Object localVarPostBody = null;
// setting builder variables
List id = trendsParams.getId();
String title = trendsParams.getTitle();
String body = trendsParams.getBody();
String text = trendsParams.getText();
List language = trendsParams.getLanguage();
String publishedAtStart = trendsParams.getPublishedAtStart();
String publishedAtEnd = trendsParams.getPublishedAtEnd();
String categoriesTaxonomy = trendsParams.getCategoriesTaxonomy();
Boolean categoriesConfident = trendsParams.getCategoriesConfident();
List categoriesId = trendsParams.getCategoriesId();
List categoriesLevel = trendsParams.getCategoriesLevel();
List entitiesTitleText = trendsParams.getEntitiesTitleText();
List entitiesTitleType = trendsParams.getEntitiesTitleType();
List entitiesTitleLinksDbpedia = trendsParams.getEntitiesTitleLinksDbpedia();
List entitiesBodyText = trendsParams.getEntitiesBodyText();
List entitiesBodyType = trendsParams.getEntitiesBodyType();
List entitiesBodyLinksDbpedia = trendsParams.getEntitiesBodyLinksDbpedia();
String sentimentTitlePolarity = trendsParams.getSentimentTitlePolarity();
String sentimentBodyPolarity = trendsParams.getSentimentBodyPolarity();
Integer mediaImagesCountMin = trendsParams.getMediaImagesCountMin();
Integer mediaImagesCountMax = trendsParams.getMediaImagesCountMax();
Integer mediaImagesWidthMin = trendsParams.getMediaImagesWidthMin();
Integer mediaImagesWidthMax = trendsParams.getMediaImagesWidthMax();
Integer mediaImagesHeightMin = trendsParams.getMediaImagesHeightMin();
Integer mediaImagesHeightMax = trendsParams.getMediaImagesHeightMax();
Integer mediaImagesContentLengthMin = trendsParams.getMediaImagesContentLengthMin();
Integer mediaImagesContentLengthMax = trendsParams.getMediaImagesContentLengthMax();
List mediaImagesFormat = trendsParams.getMediaImagesFormat();
Integer mediaVideosCountMin = trendsParams.getMediaVideosCountMin();
Integer mediaVideosCountMax = trendsParams.getMediaVideosCountMax();
List authorId = trendsParams.getAuthorId();
String authorName = trendsParams.getAuthorName();
List sourceId = trendsParams.getSourceId();
List sourceName = trendsParams.getSourceName();
List sourceDomain = trendsParams.getSourceDomain();
List sourceLocationsCountry = trendsParams.getSourceLocationsCountry();
List sourceLocationsState = trendsParams.getSourceLocationsState();
List sourceLocationsCity = trendsParams.getSourceLocationsCity();
List sourceScopesCountry = trendsParams.getSourceScopesCountry();
List sourceScopesState = trendsParams.getSourceScopesState();
List sourceScopesCity = trendsParams.getSourceScopesCity();
List sourceScopesLevel = trendsParams.getSourceScopesLevel();
Integer sourceLinksInCountMin = trendsParams.getSourceLinksInCountMin();
Integer sourceLinksInCountMax = trendsParams.getSourceLinksInCountMax();
Integer sourceRankingsAlexaRankMin = trendsParams.getSourceRankingsAlexaRankMin();
Integer sourceRankingsAlexaRankMax = trendsParams.getSourceRankingsAlexaRankMax();
List sourceRankingsAlexaCountry = trendsParams.getSourceRankingsAlexaCountry();
Integer socialSharesCountFacebookMin = trendsParams.getSocialSharesCountFacebookMin();
Integer socialSharesCountFacebookMax = trendsParams.getSocialSharesCountFacebookMax();
Integer socialSharesCountGooglePlusMin = trendsParams.getSocialSharesCountGooglePlusMin();
Integer socialSharesCountGooglePlusMax = trendsParams.getSocialSharesCountGooglePlusMax();
Integer socialSharesCountLinkedinMin = trendsParams.getSocialSharesCountLinkedinMin();
Integer socialSharesCountLinkedinMax = trendsParams.getSocialSharesCountLinkedinMax();
Integer socialSharesCountRedditMin = trendsParams.getSocialSharesCountRedditMin();
Integer socialSharesCountRedditMax = trendsParams.getSocialSharesCountRedditMax();
String field = trendsParams.getField();
// create path and map variables
String localVarPath = "/trends".replaceAll("\\{format\\}", "json");
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
List localVarFormParams = new ArrayList();
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "id[]", id));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "title", title));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "body", body));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "text", text));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "language[]", language));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "published_at.start", publishedAtStart));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "published_at.end", publishedAtEnd));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "categories.taxonomy", categoriesTaxonomy));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "categories.confident", categoriesConfident));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "categories.id[]", categoriesId));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "categories.level[]", categoriesLevel));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.text[]", entitiesTitleText));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.type[]", entitiesTitleType));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.title.links.dbpedia[]", entitiesTitleLinksDbpedia));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.text[]", entitiesBodyText));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.type[]", entitiesBodyType));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "entities.body.links.dbpedia[]", entitiesBodyLinksDbpedia));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sentiment.title.polarity", sentimentTitlePolarity));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sentiment.body.polarity", sentimentBodyPolarity));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.count.min", mediaImagesCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.count.max", mediaImagesCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.width.min", mediaImagesWidthMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.width.max", mediaImagesWidthMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.height.min", mediaImagesHeightMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.height.max", mediaImagesHeightMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.min", mediaImagesContentLengthMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.images.content_length.max", mediaImagesContentLengthMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "media.images.format[]", mediaImagesFormat));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.videos.count.min", mediaVideosCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "media.videos.count.max", mediaVideosCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "author.id[]", authorId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "author.name", authorName));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.id[]", sourceId));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.name[]", sourceName));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.domain[]", sourceDomain));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.country[]", sourceLocationsCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.state[]", sourceLocationsState));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.locations.city[]", sourceLocationsCity));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.country[]", sourceScopesCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.state[]", sourceScopesState));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.city[]", sourceScopesCity));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.scopes.level[]", sourceScopesLevel));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.min", sourceLinksInCountMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.links_in_count.max", sourceLinksInCountMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.min", sourceRankingsAlexaRankMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "source.rankings.alexa.rank.max", sourceRankingsAlexaRankMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "source.rankings.alexa.country[]", sourceRankingsAlexaCountry));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.min", socialSharesCountFacebookMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.facebook.max", socialSharesCountFacebookMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.min", socialSharesCountGooglePlusMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.google_plus.max", socialSharesCountGooglePlusMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.min", socialSharesCountLinkedinMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.linkedin.max", socialSharesCountLinkedinMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.min", socialSharesCountRedditMin));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "social_shares_count.reddit.max", socialSharesCountRedditMax));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "field", field));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/x-www-form-urlencoded"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"basic"};
GenericType localVarReturnType = new GenericType() {
};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
}