go-weibo
go-weibo is a Go client library for access the Weibo API, inspired by go-github.
Documentation: http://godoc.org/github.com/larrylv/go-weibo/weibo
This library is currently under development, please do not use it in production environment.
Usage
import "github.com/larrylv/go-weibo/weibo"
The go-weibo library does not directly handle authentication. Instead, when
creating a new client, pass an AccessToken
that will be added to every request's
header, and handle authentication for you. The easiest and recommended way to
get an AccessToken
is using the goauth2 library.
For example, to update a weibo:
accessToken = "access_token"
client := weibo.NewClient(accessToken)
// Update a weibo
opts = &weibo.StatusRequest{Status: weibo.String("Hello, Weibo!")}
status, _, err := client.Statuses.Create(opts)
See the goauth2 docs for complete instructions on using that library.
For complete usage of go-weibo, see the full package docs.
License
This library is released under the MIT License.