iancullinane / go-zendesk

Zendesk API client library for Go

Home Page:https://godoc.org/github.com/nukosuke/go-zendesk/zendesk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-zendesk

Gitter Build Status Build status Coverage Status Go Report Card GoDoc FOSSA Status

Zendesk API client library for Go

Installation

$ go get github.com/nukosuke/go-zendesk

Usage

package main

import (
    "context"

    "github.com/nukosuke/go-zendesk/zendesk"
)

func main() {
    // You can set custom *http.Client here
    client := zendesk.NewClient(nil)

    // example.zendesk.com
    client.SetSubdomain("example")

    // Authenticate with API token
    client.SetCredential(zendesk.NewAPITokenCredential("john.doe@example.com", "apitoken"))

    // Authenticate with agent password
    client.SetCredential(zendesk.NewBasicAuthCredential("john.doe@example.com", "password"))

    // Create resource
    client.CreateGroup(context.Background(), zendesk.Group{
        Name: "support team",
    })
}

Authors

License

MIT License.

See the file LICENSE.

FOSSA Status

About

Zendesk API client library for Go

https://godoc.org/github.com/nukosuke/go-zendesk/zendesk

License:MIT License


Languages

Language:Go 99.1%Language:Ruby 0.9%