cambelem / wrike.go

Go implementation of Wrike API client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrike.go Build Status GoDoc Go Report Card

Go implementation of Wrike API client

Basic usage

package main

import (
	"fmt"

	"github.com/AkihikoITOH/wrike.go"
)

func main() {
    conf := wrike.NewConfig("wrike-access-token", "")
    api := wrike.NewAPI(conf)

    user, err := api.QueryUser("KUAAAA3E")
    if err != nil {
        panic(err)
    }

    fmt.Println(user.Kind)                      // => "users"
    fmt.Println(user.Data[0].ID)                // => "KUAAAA3E"
    fmt.Println(user.Data[0].Profiles[0].Email) // => "kqri7kgjlb@y21z0uysjx.com"
}

About

Go implementation of Wrike API client

License:MIT License


Languages

Language:Go 100.0%