Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultHost = "https://api.nytimes.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct {
Section string `json:"section"`
Subsection string `json:"subsection"`
Title string `json:"title"`
Abstract string `json:"abstract"`
URL string `json:"url"`
Byline string `json:"byline"`
ItemType string `json:"item_type"`
UpdatedDate string `json:"updated_date"`
CreatedDate string `json:"created_date"`
PublishedDate string `json:"published_date"`
MaterialTypeFacet string `json:"material_type_facet"`
Kicker string `json:"kicker"`
DesFacet []string `json:"des_facet"`
OrgFacet []string `json:"org_facet"`
PerFacet []string `json:"per_facet"`
GeoFacet []interface{} `json:"geo_facet"`
Multimedia []struct {
URL string `json:"url"`
Format string `json:"format"`
Height int `json:"height"`
Width int `json:"width"`
Type string `json:"type"`
Subtype string `json:"subtype"`
Caption string `json:"caption"`
Copyright string `json:"copyright"`
} `json:"multimedia"`
ShortURL string `json:"short_url"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) GetTopStories ¶
Click to show internal directories.
Click to hide internal directories.