Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

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

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

About

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

Resources

License

Releases

No releases published

Packages

No packages published

Languages