Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

go-connpass

GoDoc Circle CI Coverage Status

connpass のサーチ API (https://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

About

Connpass API library in Go

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.