~thrrgilag/thrrgilag.net

ref: 8002309b3e3606d6ef018c714b07d7ea51eb609c thrrgilag.net/content/projects/woodstock.md -rw-r--r-- 1.3 KiB
8002309b — Morgan McMillian new post: pantalaimon-ut 0.4.0 1 year, 9 months ago

#title: "Woodstock" date: 2020-04-23T19:30:51-07:00 weight: 10 draft: 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