go-weibo

module
v0.0.0-...-c8c3dd5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2014 License: MIT

README

go-weibo

Build Status Coverage Status

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.

Directories

Path Synopsis
tests
fields
This tool tests for the JSON mappings in the go-weibo data types.
This tool tests for the JSON mappings in the go-weibo data types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL