~thrrgilag/woodstock

A client library for pnut.io written in Go
support unknown raw value types
change post to json and support raw objects
README.md: fix markdown formatting

clone

read-only
https://git.sr.ht/~thrrgilag/woodstock
read/write
git@git.sr.ht:~thrrgilag/woodstock

You can also use your local clone with git send-email.

#woodstock

A client library for pnut.io written in Go

source code - issue tracker - releases - mailing list

#Installation

go get git.sr.ht/~thrrgilag/woodstock

#Examples

New post

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