modulepackage
0.0.0-20200723013409-ffa5df15547d
Repository: https://github.com/abemedia/go-freshdesk.git
Documentation: pkg.go.dev
# README
Freshdesk Client for Go
package main
import (
"log"
"github.com/abemedia/go-freshdesk"
)
func main() {
client, err := freshdesk.NewClient("your-domain", "your-api-key")
if err != nil {
log.Fatalf("Could not create client: %s", err)
}
ticket := &freshdesk.Ticket{
Email: "[email protected]",
Name: "your name",
Subject: "this is a test",
Type: "Question",
Description: "the content of the ticket would go here",
Status: freshdesk.Open,
Priority: freshdesk.Medium,
Source: freshdesk.Portal,
}
if _, err := client.Tickets().Create(ticket); err != nil {
log.Fatalf("failed to create ticket: %s", err)
}
}
# Functions
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author