Skip to content
/ gocerb Public

Go access your Cerb information using your favourite language!

License

Notifications You must be signed in to change notification settings

dteare/gocerb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Go access your Cerb information using your favourite language!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages