esa-go is a client library for esa API v1 written in Go
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
esa
.gitignore
LICENSE
README.md

README.md

esa-go

CircleCI Coverage Status

esa-go is a client library for esa API v1 written in Go

Features

  • With context
  • Teams API
  • Members API
  • Posts API
  • Comments API
  • Star API
  • Watch API
  • Category API
  • Invitation API
  • Emoji API
  • User API
  • Oauth API

Requirement

  • Go 1.7+ (for context)

Usage

package main

import (
	"context"
	"fmt"
	"log"
	"os"

	"github.com/hori-ryota/esa-go/esa"
)

func main() {

	apiToken := os.Getenv("ESA_API_TOKEN")
	teamName := os.Getenv("ESA_TEAM_NAME")

	client := esa.NewClient(token, teamName)

	res, err := client.GetTeam(context.Background())
	if err != nil {
		log.Fatal(err)
		return
	}

	fmt.Println(res)
}

Installation

    go get github.com/hori-ryota/esa-go

Author

@hori_ryota