From f7b2580452cd8f0d6e6b556c19d3c2424a617db0 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Wed, 29 Apr 2020 06:20:09 -0700 Subject: [PATCH] woodstock 0.2.0 release --- content/post/woodstock-0-2-0.md | 41 +++++++++++++++++++++++ content/projects/woodstock.md | 59 +++++++++++++++++++++++++++++---- 2 files changed, 94 insertions(+), 6 deletions(-) create mode 100644 content/post/woodstock-0-2-0.md diff --git a/content/post/woodstock-0-2-0.md b/content/post/woodstock-0-2-0.md new file mode 100644 index 0000000..d232a42 --- /dev/null +++ b/content/post/woodstock-0-2-0.md @@ -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. + + + +Improvements in this release include: + +* Update user avatar and cover images +* Support for files + +  + +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) + +  + +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). \ No newline at end of file diff --git a/content/projects/woodstock.md b/content/projects/woodstock.md index 284436a..6ee7ba5 100644 --- a/content/projects/woodstock.md +++ b/content/projects/woodstock.md @@ -4,14 +4,61 @@ date: 2020-04-23T19:30:51-07:00 draft: false --- -A golang client library for pnut.io +A client library for pnut.io written in Go -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) - [issue tracker](https://todo.sr.ht/~thrrgilag/woodstock) - -[mailing list](https://lists.sr.ht/~thrrgilag/woodstock) - -[matrix](https://matrix.to/#/#dev:dreamfall.space) - -[irc](ircs://irc.monkeystew.net/dev) +[releases](https://git.sr.ht/~thrrgilag/woodstock/refs) - +[mailing list](https://lists.sr.ht/~thrrgilag/woodstock) + +## 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("","") + client.SetAccessToken("") + 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/)