Connpass API library in Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
sample Add godoc. Mar 28, 2015
LICENSE.md
README.md
connpass.go
connpass_test.go
sample.json

README.md

go-connpass

GoDoc Circle CI Coverage Status

connpass のサーチ API (http://connpass.com/about/api/) を Go で実装したものです。

インストール

$ go get github.com/hkurokawa/go-connpass

使い方

query := connpass.Query{Start: 1, Order: connpass.CREATE}
query.KeywordOr = []string{"go", "golang"}
query.Time = []connpass.Time{connpass.Time{Year: 2015, Month: 3}, connpass.Time{Year: 2015, Month: 4}}
result, e := query.Search()

if e != nil {
   log.Errorf("Failed to fetch the result: %v\n", e)
} else {
   fmt.Printf("Num returned: %d\n", res.Returned)
   fmt.Printf("Num available: %d\n", res.Available)
   fmt.Printf("Start position: %d\n", res.Start)
   for _, e := range res.Events {
      fmt.Printf("\t%s\t%d\t%s\n", e.Start, e.Id, e.Title)
   }
}

ライセンス

MIT

作者

Hiroshi Kurokawa