# README
wrike.go

Go implementation of Wrike API client
Basic usage
package main
import (
"fmt"
"github.com/wingman131/wrike.go"
)
func main() {
conf := wrike.NewConfig("wrike-access-token", "") // Default host name is "app-eu.wrike.com"
// To set a different host name:
// conf := wrike.NewConfig("wrike-access-token", "www.wrike.com")
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) // => "[email protected]"
}
Acknowledgements
Forked from github.com/AkihikoITOH/wrike.go in order to add in some introspection for debugging purposes.
# Packages
Package parameters contains types that represent sets of parameters that are passed to the API.
Package types contains various types that are used to parse responses from the API.
# Constants
APIRootPath is the API root path.
APIVersion is the API version number.
DefaultAPIHost is the default API host name.
DefaultTimeout is the duration for which it waits for the API to respond.