AYLIEN / aylien_newsapi_go

AYLIEN's officially supported Go client library for accessing News API
https://newsapi.aylien.com/
Other
5 stars 2 forks source link
api aylien aylien-news-api go golang machine-learning news newsapi nlp rest-api text-analysis

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 project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

Installation

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"

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

app_id

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)

app_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)

Author

support@aylien.com