woodstock 0.2.0 release

This commit is contained in:
Morgan McMillian 2020-04-29 06:20:09 -07:00
parent 6ad0e35369
commit f7b2580452
2 changed files with 94 additions and 6 deletions

View file

@ -0,0 +1,41 @@
---
title: "woodstock 0.2.0"
date: 2020-04-29T05:56:09-07:00
draft: false
---
Announcing the second pre-release (or re-release?) of the woodstock client
library for pnut.io. This is my continuation of the work started by
yukkuri_sinai in 2017. The project is alive and well at it's new home on sr.ht
and plan to continue active development going forward.
<!--more-->
Improvements in this release include:
* Update user avatar and cover images
* Support for files
&nbsp;
You can find the project now on sr.ht!
[source code](https://git.sr.ht/~thrrgilag/woodstock) -
[issue tracker](https://todo.sr.ht/~thrrgilag/woodstock) -
[releases](https://git.sr.ht/~thrrgilag/woodstock/refs) -
[mailing list](https://lists.sr.ht/~thrrgilag/woodstock)
&nbsp;
Contributions are very much welcome.
Send patches to
[~thrrgilag/woodstock@lists.sr.ht](https://lists.sr.ht/~thrrgilag/woodstock).
A nice tutorial on how to do that can be found at
[git-send-email.io](https://git-send-email.io/).
Send bugs to
[~thrrgilag/woodstock@todo.sr.ht](https://todo.sr.ht/~thrrgilag/woodstock).
Join the discussion either on the new mailing list or by joining the chat
[#dev](/chat/dev).

View file

@ -4,14 +4,61 @@ date: 2020-04-23T19:30:51-07:00
draft: false draft: false
--- ---
A golang client library for pnut.io A client library for pnut.io written in Go
<!--more--> <!--more-->
Based on peanuts, originally written by yukkuri_sinai, this project aims to create a complete supported library.
[source code](https://git.sr.ht/~thrrgilag/woodstock) - [source code](https://git.sr.ht/~thrrgilag/woodstock) -
[issue tracker](https://todo.sr.ht/~thrrgilag/woodstock) - [issue tracker](https://todo.sr.ht/~thrrgilag/woodstock) -
[mailing list](https://lists.sr.ht/~thrrgilag/woodstock) - [releases](https://git.sr.ht/~thrrgilag/woodstock/refs) -
[matrix](https://matrix.to/#/#dev:dreamfall.space) - [mailing list](https://lists.sr.ht/~thrrgilag/woodstock)
[irc](ircs://irc.monkeystew.net/dev)
## Installation
```sh
go get git.sr.ht/~thrrgilag/woodstock
```
## Example
```go
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](https://lists.sr.ht/~thrrgilag/woodstock).
A nice tutorial on how to do that can be found at
[git-send-email.io](https://git-send-email.io/).
Send bugs to
[~thrrgilag/woodstock@todo.sr.ht](https://todo.sr.ht/~thrrgilag/woodstock).
## Discussion
Mailing List:
[~thrrgilag/woodstock@lists.sr.ht](https://lists.sr.ht/~thrrgilag/woodstock)
Chat Room:
[#dev](https://thrrgilag.net/chat/dev/)