Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRequest ¶
type AddRequest struct { // category to add e.g news Category string `json:"category"` // rss feed name // eg. a16z Name string `json:"name"` // rss feed url // eg. http://a16z.com/feed/ Url string `json:"url"` }
type AddResponse ¶
type AddResponse struct { }
type Entry ¶
type Entry struct { // article content Content string `json:"content"` // data of the entry Date string `json:"date"` // the rss feed where it came from Feed string `json:"feed"` // unique id of the entry Id string `json:"id"` // rss feed url of the entry Link string `json:"link"` // article summary Summary string `json:"summary"` // title of the entry Title string `json:"title"` }
type Feed ¶
type Feed struct { // category of the feed e.g news Category string `json:"category"` // unique id Id string `json:"id"` // rss feed name // eg. a16z Name string `json:"name"` // rss feed url // eg. http://a16z.com/feed/ Url string `json:"url"` }
type FeedRequest ¶
type FeedResponse ¶
type FeedResponse struct {
Entries []Entry `json:"entries"`
}
type ListRequest ¶
type ListRequest struct { }
type ListResponse ¶
type ListResponse struct {
Feeds []Feed `json:"feeds"`
}
type RemoveRequest ¶
type RemoveRequest struct { // rss feed name // eg. a16z Name string `json:"name"` }
type RemoveResponse ¶
type RemoveResponse struct { }
type RssService ¶
type RssService struct {
// contains filtered or unexported fields
}
func NewRssService ¶
func NewRssService(token string) *RssService
func (*RssService) Add ¶
func (t *RssService) Add(request *AddRequest) (*AddResponse, error)
Add a new RSS feed with a name, url, and category
func (*RssService) Feed ¶
func (t *RssService) Feed(request *FeedRequest) (*FeedResponse, error)
Get an RSS feed by name. If no name is given, all feeds are returned. Default limit is 25 entries.
func (*RssService) List ¶
func (t *RssService) List(request *ListRequest) (*ListResponse, error)
List the saved RSS fields
func (*RssService) Remove ¶
func (t *RssService) Remove(request *RemoveRequest) (*RemoveResponse, error)
Remove an RSS feed by name
Click to show internal directories.
Click to hide internal directories.