Skip to content

jpramirez/go-newsapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-newsapi

Small client for newsapi.org API.

Example of implementation in cmd/NewServer

Importing

var parameters models.NewsQueryParameter
parameters.Category = "technology"
parameters.PageSize = 10
parameters.Language = "en"

ret, err := _feed.GetFeed(constants.TopHeadLinesEndpoint, parameters)

Listing all Sources

//Testing Sources
var sourcePrameters models.NewsQueryParameter
sourcePrameters.Category = "technology"
retSources, err := _feed.GetSources(sourcePrameters)

fmt.Println(retSources.Status)
fmt.Println(retSources.Sources)

About

This an implementation of News API in GO

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published