Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
:bird: One of the first go libraries, targets the old Twitter API which no longer works
Go
Tree: 6becc611ca

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
doc
examples
INSTALL
LICENSE
Makefile
README.rst
api.go
http_auth.go
rate_limit.go
search.go
status.go
twitter_test.go
user.go
util.go

README.rst

go-twitter

go-twitter is a Twitter library package for Go. The interface is similar to python-twitter.

Installation

  1. Make sure you have Go installed and your environment is set up correctly: $GOROOT, $GOARCH, $GOBIN, etc.
  2. Checkout the code from the repository or extract the source code.
  3. cd go-twitter && make install

Quick Start

import "twitter"

// Prints the public timeline
func main() {
  api := twitter.NewApi();
  pubTimeline := <-api.GetPublicTimeline();

  for i, status := range pubTimeline {
    fmt.Printf("#%d %s: %s\n", i,
              status.GetUser().GetScreenName(),
              status.GetText());
  }
}

Documentation

doc/ - godoc generated files, site coming soon

Something went wrong with that request. Please try again.