An open API service indexing awesome lists of open source software.

https://github.com/pvik/go-whd

A go library to access WebHelpDesk via its Rest API
https://github.com/pvik/go-whd

Last synced: 5 months ago
JSON representation

A go library to access WebHelpDesk via its Rest API

Awesome Lists containing this project

README

          

# go-whd: Solarwinds© Web Help Desk Golang API

DISCLAIMER: I have no affiliation to SolarWinds© and this is a third party API. This is _NOT_ supported by SolarWinds©. Solarwinds and Web Help Desk are [Trademarks of Solarwinds](https://www.solarwinds.com/legal/trademarks).

A golang wrapper around the Web Help Desk REST API. Allows you to interact with the Solarwinds Web Help Desk REST API from your applications seamlessly.

The API is based on the SolarWinds Web Help Desk REST API documentation for 12.7.4 found [here](https://documentation.solarwinds.com/archive/pdf/whd/whdapiguide.pdf).

Supported Features:
* Authenticate (Username/Password;API Key;Session Key)
* Create/Update Tickets
* Support for manipulating Ticket Custom fields
* Add Worklog notes to Tickets
* Retreive Ticket Worklog Notes
* Add Attachments
* Retreive Attachments (From Tickets and Worklog Notes)
* Locations/Status/Ticket Type Objects provided for easy manipulation and access to these fields in Tickets

## Getting Started

### Installing

To start using `go-whd` include the following in you application import:

```
"github.com/pvik/go-whd/whd"
```

### Example

#### Retrieve a ticket

```go
whdTicketID := 1000
var whdTicket whd.Ticket
err := whd.GetTicket(Host,
whd.User{Pass: ApiKey, Type: whd.ApiKeyAuth},
whdTicketID,
&whdTicket)
if err != nil {
log.Errorf("Unable to retrive ticket from WHD: %s", err)
return
}
log.Debugf("Retrieved Ticket from WHD: %+v", whdTicket)
```