Categorygithub.com/wingman131/wrike.go
modulepackage
0.1.2
Repository: https://github.com/wingman131/wrike.go.git
Documentation: pkg.go.dev

# README

wrike.go Go PkgGoDev Go Report Card

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.

# Functions

NewAPI creates and returns a new API object based on the given Config.
NewConfig creates and returns a new Config object based on the given access token and api host.

# 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.

# Structs

API object contains the API configuration and has methods to communicate with the API.
Config contains configuration parameters of the Wrike API.