gocerb

command module
v0.0.0-...-dfe5886 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 10 Imported by: 0

README

Go Cerb!

Implements Webgroup Media's Cerb Helpdesk API in Golang.

Setup

Ensure you enable the API plugin on your Cerb instance and generate an API key-pair. Be sure to set the endpoints that you want to allow.

Usage

Install Go and make sure your GOPATH is set.

go get github.com/dteare/gocerb

Copy sample-creds.json to ~/.config/cerb/creds.json and update it with your API key-pair that you created.

Testing

Update cerb.NewCerberus with your base server URL in main.go. You'll also need to set your Bucket and Group ids in testCreateTicket.

Run go run main.go and you should see:

$ go run main.go
Create message 3983875 within ticket 3983875! 💌 https://agilebits.cerb.me/profiles/ticket/IHQ-29388-848
Found 7 open tickets for dave+gocerb@1password.com.
Loaded 100 tickets from page 0. 2312 tickets remain on subsequent pages.
Loaded 100 tickets from page 1. 2212 tickets remain on subsequent pages.
...
Loaded 100 tickets from page 23. 11 tickets remain on subsequent pages.
Loaded 100 tickets from page 24. 0 tickets remain on subsequent pages.

Contributing

GoCerb! was primarily created to help our customer support team at 1Password. I'll happily review pull requests and merge those that help us help more customers. My email notifications are out of control so ping me on Twitter to get my attention.

Contributors

A big hat tip to @jstanden for all his help making this possible. 😘

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL