A minimalistic but fully featured go client for the spinrewriter AI API.
Currently in an experimental state, the package will soon be battle tested and hopefully proven as stable.
API Stability
- ✅ Quota
- ✅ Spintax
- 🚧 UniqueVariation
- 🚧 UniqueSpintaxVariation
✅ = Tested 🚧 = Untested
package main
import "github.com/timo972/go-spinrewriter"
func main() {
client := spinrewriter.New("email", "apiKey")
spintax, err := client.Spintax("This is a sentence.")
if err != nil {
log.Fatalln(err)
}
log.Printf("Text options: %d", spintax.NumOptions())
}Make sure you have Go installed (download). Version 1.19 or higher is required.
Initialize your project by creating a folder and then running go mod init github.com/your/repo (learn more) inside the folder. Then install the spinrewriter client with the go get command:
go get -u github.com/timo972/go-spinrewriterThe client does not circumvent limitations set by the Spinrewriter API. Make sure to check out their documentation!