Skip to content

Basic Freskdesk.com ticket creation API (Go, golang)

License

Notifications You must be signed in to change notification settings

kmanley/freshdesk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Freshdesk API (Go, golang)

Basic API submitting a ticket to Freshdesk.com

How to use

import "github.com/fundedcity/freshdesk"

r := &freshdesk.Request{
	Domain: "your-freshdesk-domain",
	API:    "api-key-here",
}

tk := &freshdesk.NewTicket{
  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,
  },
}

conform.Strings(tk.Ticket) // <-- optionally use "conform" library

tk.Create(r) // <-- returns error || nil

Conform library compatibility

Ticket struct fields work with the optional conform library.

About

Basic Freskdesk.com ticket creation API (Go, golang)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages