ttakuya50 / go-connpass

connpassAPIを使いやすくするためのgolangライブラリ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-connpass

go-connpass is a Go client library for accessing the connpass API.

Build Status : Circle CI

LICENSE : MIT License

Requirement

  • Go version 1.7 or greater.

Installation

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

Usage

package main

import (
    "fmt"
    "github.com/TsujiTakuya55/go-connpass/connpass"
)

func main() {

    param := &connpass.Param{
        EventId:2,
    }

    client := connpass.NewClient()
    connpass, _, err := client.Get(param)

    if err != nil {
        fmt.Println(fmt.Errorf("err! \n", err))
        return
    }

    for _, k := range *connpass.Events {
        fmt.Println("eventId :", *k.EventId)
        fmt.Println("title :", *k.Title)
        fmt.Println("address :", *k.Address)
        fmt.Println("startedAt :", *k.StartedAt)
    }
}

For details, please click here

Anything Else

coming soon

Author

@Tsuji_Taku50

License

Please see the license file for the license of this library

About

connpassAPIを使いやすくするためのgolangライブラリ

License:MIT License


Languages

Language:Go 100.0%