A Go (golang) library for interacting with the sub.club API.
package main
import (
"fmt"
"github.com/musingstudio/go-subclub"
)
func main() {
c := subclub.NewClient("YOUR SUB.CLUB KEY")
p, err := c.Post(&subclub.PostParams{
Content: "This is my premium post",
})
if err != nil {
fmt.Println(err)
}
fmt.Printf("Post: %+v", p)
}