Go implementation of Wrike API client
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]"
}
Forked from github.com/AkihikoITOH/wrike.go in order to add in some introspection for debugging purposes.