Feedbin API Documentation: https://github.com/feedbin/feedbin-api.
go get github.com/chyroc/go-feedbin
package main
import (
"context"
"fmt"
"github.com/chyroc/go-feedbin"
)
func main() {
url := ""
cli := feedbin.New(feedbin.WithCredential("username", "password"))
resp, err := cli.CreatePage(context.Background(), &feedbin.CreatePageReq{
URL: url,
})
if err != nil {
panic(err)
}
fmt.Println("title", resp.Title)
fmt.Println("content", resp.Content)
}
package main
import (
"context"
"fmt"
"github.com/chyroc/go-feedbin"
)
func main() {
cli := feedbin.New(feedbin.WithCredential("username", "password"))
resp, err := cli.GetSubscriptions(context.Background(), &feedbin.GetSubscriptionsReq{})
if err != nil {
panic(err)
}
fmt.Println("subscriptions length:", len(resp.Subscriptions))
for _, v := range resp.Subscriptions {
fmt.Println(v.ID, v.Title, v.FeedURL)
}
}
package main
import (
"context"
"fmt"
"github.com/chyroc/go-feedbin"
)
func main() {
url := ""
cli := feedbin.New()
resp, err := cli.ExtractingContent(context.Background(), &feedbin.ExtractingContentReq{
URL: url,
})
if err != nil {
panic(err)
}
fmt.Println("title", resp.Title)
fmt.Println("content", resp.Content)
}