An open API service indexing awesome lists of open source software.

https://github.com/lll-lll-lll-lll/go-connpass

connpass api golang sdk
https://github.com/lll-lll-lll-lll/go-connpass

connpass connpass-api golang portfolio

Last synced: about 1 month ago
JSON representation

connpass api golang sdk

Awesome Lists containing this project

README

        

### 申請
個人の利用ではIPアドレスをを1つに固定し、申請を出せば無償で利用できるので[こちら](https://help.connpass.com/api/#id4)から申請をしてみましょう。
### Install
```sh
go get github.com/lll-lll-lll-lll/[email protected]
```

### Introduction
#### simple request
```go
client := &connpass.Client{}
req := &connpass.EventRequest{}
req.SetURL(connpass.CONNPASSAPI_EVENT_V1 + "?")
req.NickName = []string{"your connpass nickname"}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
res, _ := client.Do(ctx, req)
defer res.Body.Close()

var cRes connpass.EventResponse
body, _ := io.ReadAll(res.Body)
if err := json.Unmarshal(body, &cRes); err != nil {
log.Fatal(err)
}
fmt.Println(cRes)
```

### Reference
https://connpass.com/about/api/