Skip to content

AYLIEN/aylien_newsapi_go

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
api
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

  • 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/

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

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

app_key

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

Author

support@aylien.com