1.3 KiB
1.3 KiB
title | date | draft |
---|---|---|
Woodstock | 2020-04-23T19:30:51-07:00 | false |
A client library for pnut.io written in Go
source code - issue tracker - releases - mailing list
Installation
go get git.sr.ht/~thrrgilag/woodstock
Example
package main
import (
"fmt"
"net/url"
"git.sr.ht/~thrrgilag/woodstock"
)
func main() {
client := woodstock.NewClient("<ClientID>","")
client.SetAccessToken("<AccessToken>")
text := "Hello pnut.io"
v := url.Values{}
v.Set("text", text)
post, err := client.Post(v)
if err != nil {
fmt.Println(err)
}
fmt.Println(post.Data.Content.Text)
}
Contributing
Send patches to ~thrrgilag/woodstock@lists.sr.ht.
A nice tutorial on how to do that can be found at git-send-email.io.
Send bugs to ~thrrgilag/woodstock@todo.sr.ht.
Discussion
Mailing List: ~thrrgilag/woodstock@lists.sr.ht
Chat Room: #dev