83024250a2
* Added project pages for Goober BB10 and Pantalaimon UT * Noted projects that are no longer active and fixed list order
1.3 KiB
1.3 KiB
title | date | weight | draft |
---|---|---|---|
Woodstock | 2020-04-23T19:30:51-07:00 | 10 | 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