https://github.com/musingstudio/go-subclub
A Go (golang) library for the sub.club API
https://github.com/musingstudio/go-subclub
Last synced: 9 months ago
JSON representation
A Go (golang) library for the sub.club API
- Host: GitHub
- URL: https://github.com/musingstudio/go-subclub
- Owner: musingstudio
- License: mit
- Created: 2024-09-06T18:39:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-08T19:57:08.000Z (over 1 year ago)
- Last Synced: 2024-10-30T04:29:50.408Z (over 1 year ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-subclub
[](https://pkg.go.dev/github.com/musingstudio/go-subclub)
A Go (golang) library for interacting with the [sub.club](https://sub.club) API.
## Example Usage
```go
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)
}
```