Skip to content

gedex/go-twitterstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-twitterstream

Go library to access Twitter's Streaming API.

Documentation: http://godoc.org/github.com/gedex/go-twitterstream/twitterstream

Build Status: Build Status

Basic Usage

config := &twitterstream.Config{
	ConsumerKey:      "YOUR CONSUMER KEY",
	ConsumerSecret:   "YOUR CONSUMER SECRET",
	OAuthToken:       "YOUR OAUTH TOKEN",
	OAuthTokenSecret: "YOUR OAUTH TOKEN SECRET",
}
client := twitterstream.NewClient(config)
client.HandleFunc("tweet", func(s *twitterstream.Stream) {
	log.Printf("user %v tweets: %v\n", s.Tweet.User.ScreenName, s.Tweet.Text)
})

err := client.Public.Sample()
if err != nil {
	log.Fatal(err)
}

Please see examples for a complete example.

Credits

License

This library is distributed under the BSD-style license found in the LICENSE.md file.

About

Go library for accessing Twitter's Stream API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages