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.
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec 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/
Install the following dependencies:
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:
import "./newsapi"
All URIs are relative to https://api.aylien.com/news
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | AdvancedListStories | Post /stories | List Stories |
DefaultApi | ListAutocompletes | Get /autocompletes | List autocompletes |
DefaultApi | ListClusters | Get /clusters | List Clusters |
DefaultApi | ListHistograms | Get /histograms | List histograms |
DefaultApi | ListRelatedStoriesGet | Get /related_stories | |
DefaultApi | ListRelatedStoriesPost | Post /related_stories | |
DefaultApi | ListStories | Get /stories | List Stories |
DefaultApi | ListTimeSeries | Get /time_series | List time series |
DefaultApi | ListTrends | Get /trends | List trends |
- AggregatedSentiment
- Author
- Autocomplete
- Autocompletes
- Category
- CategoryLinks
- CategoryTaxonomy
- Cluster
- Clusters
- DunsNumber
- Entity
- EntityInText
- EntityLinks
- EntityMention
- EntityMentionIndex
- EntitySentiment
- EntitySurfaceForm
- Error
- ErrorLinks
- Errors
- ExternalIds
- HistogramInterval
- Histograms
- Location
- Media
- MediaFormat
- MediaType
- Rank
- Rankings
- RelatedStories
- RepresentativeStory
- Scope
- ScopeLevel
- Sentiment
- SentimentPolarity
- Sentiments
- ShareCount
- ShareCounts
- Source
- Stories
- Story
- StoryCluster
- StoryLinks
- StoryTranslation
- StoryTranslations
- Summary
- TimeSeries
- TimeSeriesList
- Trend
- Trends
- Warning
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)