Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 545 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 545 Bytes

go-subclub

Go Reference

A Go (golang) library for interacting with the sub.club API.

Example Usage

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)
}