# Go API client for newsapi

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.


## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project.  By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 5.2.3
- Package version: 5.2.3
- Build package: org.openapitools.codegen.languages.GoClientCodegen
For more information, please visit [https://newsapi.aylien.com/](https://newsapi.aylien.com/)

## Installation

Install the following dependencies:

```shell
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional
```

Put the package under your project folder and add the following in import:

```golang
import "./newsapi"
```

## Documentation for API Endpoints

All URIs are relative to *https://api.aylien.com/news*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**AdvancedListStories**](docs/DefaultApi.md#advancedliststories) | **Post** /stories | List Stories
*DefaultApi* | [**ListAutocompletes**](docs/DefaultApi.md#listautocompletes) | **Get** /autocompletes | List autocompletes
*DefaultApi* | [**ListClusters**](docs/DefaultApi.md#listclusters) | **Get** /clusters | List Clusters
*DefaultApi* | [**ListHistograms**](docs/DefaultApi.md#listhistograms) | **Get** /histograms | List histograms
*DefaultApi* | [**ListRelatedStoriesGet**](docs/DefaultApi.md#listrelatedstoriesget) | **Get** /related_stories | 
*DefaultApi* | [**ListRelatedStoriesPost**](docs/DefaultApi.md#listrelatedstoriespost) | **Post** /related_stories | 
*DefaultApi* | [**ListStories**](docs/DefaultApi.md#liststories) | **Get** /stories | List Stories
*DefaultApi* | [**ListTimeSeries**](docs/DefaultApi.md#listtimeseries) | **Get** /time_series | List time series
*DefaultApi* | [**ListTrends**](docs/DefaultApi.md#listtrends) | **Get** /trends | List trends


## Documentation For Models

 - [AggregatedSentiment](docs/AggregatedSentiment.md)
 - [Author](docs/Author.md)
 - [Autocomplete](docs/Autocomplete.md)
 - [Autocompletes](docs/Autocompletes.md)
 - [Category](docs/Category.md)
 - [CategoryLinks](docs/CategoryLinks.md)
 - [CategoryTaxonomy](docs/CategoryTaxonomy.md)
 - [Cluster](docs/Cluster.md)
 - [Clusters](docs/Clusters.md)
 - [DunsNumber](docs/DunsNumber.md)
 - [Entity](docs/Entity.md)
 - [EntityInText](docs/EntityInText.md)
 - [EntityLinks](docs/EntityLinks.md)
 - [EntityMention](docs/EntityMention.md)
 - [EntityMentionIndex](docs/EntityMentionIndex.md)
 - [EntitySentiment](docs/EntitySentiment.md)
 - [EntitySurfaceForm](docs/EntitySurfaceForm.md)
 - [Error](docs/Error.md)
 - [ErrorLinks](docs/ErrorLinks.md)
 - [Errors](docs/Errors.md)
 - [ExternalIds](docs/ExternalIds.md)
 - [HistogramInterval](docs/HistogramInterval.md)
 - [Histograms](docs/Histograms.md)
 - [Location](docs/Location.md)
 - [Media](docs/Media.md)
 - [MediaFormat](docs/MediaFormat.md)
 - [MediaType](docs/MediaType.md)
 - [Rank](docs/Rank.md)
 - [Rankings](docs/Rankings.md)
 - [RelatedStories](docs/RelatedStories.md)
 - [RepresentativeStory](docs/RepresentativeStory.md)
 - [Scope](docs/Scope.md)
 - [ScopeLevel](docs/ScopeLevel.md)
 - [Sentiment](docs/Sentiment.md)
 - [SentimentPolarity](docs/SentimentPolarity.md)
 - [Sentiments](docs/Sentiments.md)
 - [ShareCount](docs/ShareCount.md)
 - [ShareCounts](docs/ShareCounts.md)
 - [Source](docs/Source.md)
 - [Stories](docs/Stories.md)
 - [Story](docs/Story.md)
 - [StoryCluster](docs/StoryCluster.md)
 - [StoryLinks](docs/StoryLinks.md)
 - [StoryTranslation](docs/StoryTranslation.md)
 - [StoryTranslations](docs/StoryTranslations.md)
 - [Summary](docs/Summary.md)
 - [TimeSeries](docs/TimeSeries.md)
 - [TimeSeriesList](docs/TimeSeriesList.md)
 - [Trend](docs/Trend.md)
 - [Trends](docs/Trends.md)
 - [Warning](docs/Warning.md)


## Documentation For Authorization



## app_id

- **Type**: API key

Example

```golang
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
    Key: "APIKEY",
    Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)
```


## app_key

- **Type**: API key

Example

```golang
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
    Key: "APIKEY",
    Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)
```



## Author

support@aylien.com

