All Projects → nukosuke → go-zendesk

nukosuke / go-zendesk

Licence: MIT license
Zendesk API client library for Go

Programming Languages

go
31211 projects - #10 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to go-zendesk

Chatwoot
Open-source customer engagement suite, an alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬
Stars: ✭ 11,554 (+30305.26%)
Mutual labels:  zendesk
Stackedit
In-browser Markdown editor
Stars: ✭ 18,744 (+49226.32%)
Mutual labels:  zendesk
Papercups
Open-source live customer chat
Stars: ✭ 4,554 (+11884.21%)
Mutual labels:  zendesk
zendesk-node-api
🎁 A wrapper library for the Zendesk API with NodeJS.
Stars: ✭ 52 (+36.84%)
Mutual labels:  zendesk
react-zendesk
A component simplifies Zendesk widget usage in your React application
Stars: ✭ 34 (-10.53%)
Mutual labels:  zendesk

go-zendesk

Actions 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("[email protected]", "apitoken"))

    // Authenticate with agent password
    client.SetCredential(zendesk.NewBasicAuthCredential("[email protected]", "password"))

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

Want to mock API?

go-zendesk has a mock package generated by golang/mock. You can simulate the response from Zendesk API with it.

To regenerate the mock client

go generate ./...

Maintainer

License

MIT License.

See the file LICENSE.

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].