Documentation
¶
Overview ¶
newsapi implements an API client for NewsAPI (https://newsapi.org/docs)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct {
Source Source `json:"source"`
Title string `json:"title"`
Author string `json:"author,omitempty"`
Description string `json:"description,omitempty"`
Url string `json:"url,omitempty"`
ImageUrl string `json:"urlToImage,omitempty"`
PublishedAt time.Time `json:"publishedAt,omitempty"`
Content string `json:"content,omitempty"`
}
type Client ¶
type Client struct {
*client.Client
}
func (*Client) RegisterWithToolKit ¶
func (*Client) Sources ¶
Sources returns all the models. The options which can be passed are:
OptCategory: The category you would like to get sources for. Possible options are business, entertainment, general, health, science, sports, technology. OptLanguage: The language you would like to get sources for OptCountry: The country you would like to get sources for
Click to show internal directories.
Click to hide internal directories.