This is a Go implementation of the micro.blog JSON API.
Currently only the GET
methods are implemented.
You need an API key. You can get one here.
package main
import (
micro "github.com/fiskeben/microdotblog"
"fmt"
)
func main() {
client := micro.NewAPIClient("your-api-key")
feed, err := client.GetPosts()
if err != nil {
panic(err)
}
fmt.Printf("It got a feed called %s with %d posts in it", feed.Title, len(feed.Posts))
}
- Implement remaining methods.
- Testing. Currently only have tests that go directly to micro.blog.
- Better errors. Right now raw http and unmarshalling errors are returned.
- Even better errors. Make it easier to test the type of error.
- Fix some issues with
DELETE
method.
You can follow me on micro.blog here.