mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-12 10:55:11 +00:00
18 lines
334 B
Go
Executable File
18 lines
334 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/rss"
|
|
)
|
|
|
|
// Get an RSS feed by name. If no name is given, all feeds are returned. Default limit is 25 entries.
|
|
func ReadAfeed() {
|
|
rssService := rss.NewRssService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := rssService.Feed(&rss.FeedRequest{
|
|
Name: "bbc",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|