Versions in this module Expand all Collapse all v0 v0.1.3 Mar 13, 2019 Changes in this version type Client + func (z Client) Delete(path string) error + func (z Client) Put(path string, data interface{}) ([]byte, error) type Error + func (e Error) Body() io.ReadCloser + func (e Error) Headers() http.Header + func (e Error) Status() int v0.1.2 Mar 11, 2019 Changes in this version + type API interface + type Error struct + func (e Error) Error() string + func (e Error) Response() *http.Response + type GroupAPI interface + CreateGroup func(group Group) (Group, error) + GetGroups func() ([]Group, Page, error) + type LocaleAPI interface + GetLocales func() ([]Locale, error) + type TicketFieldAPI interface + CreateTicketField func(ticketField TicketField) (TicketField, error) + GetTicketField func(ticketID int64) (TicketField, error) + GetTicketFields func() ([]TicketField, Page, error) + type TicketFormAPI interface + CreateTicketForm func(ticketForm TicketForm) (TicketForm, error) + GetTicketForms func() ([]TicketForm, Page, error) + type TriggerAPI interface + CreateTrigger func(trigger Trigger) (Trigger, error) + GetTriggers func() ([]Trigger, Page, error) + type UserAPI interface + CreateUser func(user User) (User, error) + GetUsers func() ([]User, Page, error) v0.1.1 Mar 10, 2019 Changes in this version type TicketField + RequiredInPortal bool v0.1.0 Mar 9, 2019 Changes in this version + const LocaleAR + const LocaleBG + const LocaleCA + const LocaleCS + const LocaleDA + const LocaleDE + const LocaleDEAT + const LocaleDECH + const LocaleEL + const LocaleENAU + const LocaleENBE + const LocaleENCA + const LocaleENGB + const LocaleENIE + const LocaleENIN + const LocaleENNZ + const LocaleENPH + const LocaleENSG + const LocaleENUS + const LocaleENZA + const LocaleES + const LocaleES419 + const LocaleESES + const LocaleESMX + const LocaleET + const LocaleFA + const LocaleFI + const LocaleFIL + const LocaleFR + const LocaleFRBE + const LocaleFRCA + const LocaleFRCH + const LocaleFRFR + const LocaleHE + const LocaleHI + const LocaleHR + const LocaleHU + const LocaleID + const LocaleIS + const LocaleIT + const LocaleJA + const LocaleKO + const LocaleLT + const LocaleLV + const LocaleMS + const LocaleNL + const LocaleNLBE + const LocaleNO + const LocalePL + const LocalePT + const LocalePTBR + const LocaleRO + const LocaleRU + const LocaleSK + const LocaleSL + const LocaleSR + const LocaleSRME + const LocaleSV + const LocaleTH + const LocaleTR + const LocaleUK + const LocaleVI + const LocaleZHCN + const LocaleZHTW + const UserRoleAdmin + const UserRoleAgent + const UserRoleEndUser + func LocaleTypeText(loc int) string + func UserRoleText(role int) string type Client + func (z *Client) CreateDynamicContentItem(item DynamicContentItem) (DynamicContentItem, error) + func (z *Client) CreateGroup(group Group) (Group, error) + func (z *Client) GetDynamicContentItems() ([]DynamicContentItem, Page, error) + func (z *Client) GetGroups() ([]Group, Page, error) + func (z *Client) GetLocales() ([]Locale, error) + func (z *Client) GetUserFields() ([]UserField, Page, error) + func (z *Client) GetUsers() ([]User, Page, error) + func (z Client) CreateUser(user User) (User, error) + func (z Client) Get(path string) ([]byte, error) + func (z Client) GetTicketField(ticketID int64) (TicketField, error) + func (z Client) Post(path string, data interface{}) ([]byte, error) + type CustomFieldOption struct + ID int64 + Name string + Position int64 + RawName string + URL string + Value string + type DynamicContentItem struct + CreatedAt time.Time + DefaultLocaleID int64 + ID int64 + Name string + Outdated bool + Placeholder string + URL string + UpdatedAt time.Time + Variants []DynamicContentVariant + type DynamicContentVariant struct + Active bool + Content string + CreatedAt time.Time + Default bool + ID int64 + LocaleID int64 + Outdated bool + URL string + UpdatedAt time.Time + type Group struct + CreatedAt time.Time + Deleted bool + ID int64 + Name string + URL string + UpdatedAt time.Time + type Locale struct + CreatedAt time.Time + ID int64 + Locale string + Name string + URL string + UpdatedAt time.Time + type User struct + Active bool + Alias string + ChatOnly bool + CreatedAt time.Time + CustomRoleID int64 + DefaultGroupID int64 + Details string + Email string + ExternalID string + ID int64 + LastLoginAt time.Time + Locale string + LocaleID int64 + Moderator bool + Name string + Notes string + OnlyPrivateComments bool + OrganizationID int64 + Phone string + ReportCSV bool + RestrictedAgent bool + Role string + RoleType int64 + Shared bool + SharedAgent bool + SharedPhoneNumber bool + Signature string + Suspended bool + Tags []string + TicketRestriction string + Timezone string + TwoFactorAuthEnabled bool + URL string + UpdatedAt time.Time + Verified bool + type UserField struct + Active bool + CreatedAt time.Time + CustomFieldOptions []CustomFieldOption + Description string + ID int64 + Key string + Position int64 + RawDescription string + RawTitle string + RegexpForValidation string + System bool + Tag string + Title string + Type string + URL string + UpdatedAt time.Time v0.0.0 Nov 27, 2018 Changes in this version + const ActionFieldAssigneeID + const ActionFieldCC + const ActionFieldCommentModeIsPublic + const ActionFieldCommentValue + const ActionFieldCommentValueHTML + const ActionFieldCurrentTags + const ActionFieldGroupID + const ActionFieldLocaleID + const ActionFieldNotificationGroup + const ActionFieldNotificationTarget + const ActionFieldNotificationUser + const ActionFieldPriority + const ActionFieldRemoveTags + const ActionFieldSatisfactionScore + const ActionFieldSetTags + const ActionFieldStatus + const ActionFieldSubject + const ActionFieldTicketFormID + const ActionFieldTweetRequester + const ActionFieldType + const ConditionFieldAgentStations + const ConditionFieldAssignedAt + const ConditionFieldAssigneeID + const ConditionFieldAssigneeUpdatedAt + const ConditionFieldClosed + const ConditionFieldCommentIncludesWord + const ConditionFieldCommentIsPublic + const ConditionFieldCurrentTags + const ConditionFieldCurrentViaID + const ConditionFieldDescriptionIncludesWord + const ConditionFieldDueDate + const ConditionFieldExactCreatedAt + const ConditionFieldGroupID + const ConditionFieldGroupStations + const ConditionFieldInBusinessHours + const ConditionFieldLocaleID + const ConditionFieldNew + const ConditionFieldOpen + const ConditionFieldOrganizationID + const ConditionFieldPending + const ConditionFieldPriority + const ConditionFieldRecipient + const ConditionFieldReopens + const ConditionFieldReplies + const ConditionFieldRequesterID + const ConditionFieldRequesterTwitterFollowersCount + const ConditionFieldRequesterTwitterStatusesCount + const ConditionFieldRequesterTwitterVerified + const ConditionFieldRequesterUpdatedAt + const ConditionFieldSatisfactionScore + const ConditionFieldSolved + const ConditionFieldStatus + const ConditionFieldSubjectIncludesWord + const ConditionFieldTicketIsPublic + const ConditionFieldTicketTypeID + const ConditionFieldType + const ConditionFieldUntilDueDate + const ConditionFieldUpdateType + const ConditionFieldUpdatedAt + const ConditionFieldViaID + const ViaAPIPhoneCallInbound + const ViaAPIPhoneCallOutbound + const ViaAPIVoicemail + const ViaAnyChannel + const ViaChat + const ViaClosedTicket + const ViaFacebookMessage + const ViaFacebookPost + const ViaGetSatisfaction + const ViaHelpCenter + const ViaMail + const ViaMobile + const ViaMobileSDK + const ViaPhoneCallInbound + const ViaPhoneCallOutbound + const ViaRule + const ViaSMS + const ViaSatisfactionPrediction + const ViaTicketSharing + const ViaTwitter + const ViaTwitterDM + const ViaTwitterFavorite + const ViaVoicemail + const ViaWebForm + const ViaWebService + const ViaWebWidget + func ActionFieldText(fieldType int) string + func ConditionFieldText(fieldType int) string + func ViaTypeText(viaID int) string + type APITokenCredential struct + func NewAPITokenCredential(email string, apiToken string) *APITokenCredential + func (c APITokenCredential) Email() string + func (c APITokenCredential) Secret() string + type BasicAuthCredential struct + func NewBasicAuthCredential(email string, password string) *BasicAuthCredential + func (c BasicAuthCredential) Email() string + func (c BasicAuthCredential) Secret() string + type Client struct + func NewClient(httpClient *http.Client) (*Client, error) + func (z *Client) GetTriggers() ([]Trigger, Page, error) + func (z *Client) SetCredential(cred Credential) + func (z *Client) SetEndpointURL(newURL string) error + func (z *Client) SetHeader(key string, value string) + func (z *Client) SetSubdomain(subdomain string) error + func (z Client) CreateTicketField(ticketField TicketField) (TicketField, error) + func (z Client) CreateTicketForm(ticketForm TicketForm) (TicketForm, error) + func (z Client) CreateTrigger(trigger Trigger) (Trigger, error) + func (z Client) GetTicketFields() ([]TicketField, Page, error) + func (z Client) GetTicketForms() ([]TicketForm, Page, error) + func (z Client) NewGetRequest(path string) (*http.Request, error) + func (z Client) NewPostRequest(path string, payload interface{}) (*http.Request, error) + type Credential interface + Email func() string + Secret func() string + type GetTicketFormsResponse struct + Page Page + TicketForms []TicketForm + type GetTriggersResponse struct + Page Page + Triggers []Trigger + type Page struct + Count int64 + NextPage *string + PreviousPage *string + func (p Page) HasNext() bool + func (p Page) HasPrev() bool + type TicketField struct + Active bool + AgentDescription string + CollapsedForAgents bool + CreatedAt *time.Time + CustomFieldOptions []TicketFieldCustomFieldOption + Description string + EditableInPortal bool + ID int64 + Position int64 + RawDescription string + RawTitle string + RawTitleInPortal string + RegexpForValidation string + Removable bool + Required bool + SubTypeID int64 + SystemFieldOptions []TicketFieldSystemFieldOption + Tag string + Title string + TitleInPortal string + Type string + URL string + UpdatedAt *time.Time + VisibleInPortal bool + type TicketFieldCustomFieldOption struct + ID int64 + Name string + Position int64 + RawName string + URL string + Value string + type TicketFieldSystemFieldOption struct + ID int64 + Name string + Position int64 + RawName string + URL string + Value string + type TicketForm struct + Active bool + Default bool + DisplayName string + EndUserVisible bool + ID int64 + InAllBrands bool + Name string + Position int64 + RawDisplayName string + RawName string + RestrictedBrandIDs []int64 + TicketFieldIDs []int64 + type Trigger struct + Actions []TriggerAction + Active bool + Conditions struct{ ... } + CreatedAt *time.Time + Description string + ID int64 + Position int64 + Title string + UpdatedAt *time.Time + type TriggerAction struct + Field string + Value interface{} + type TriggerCondition struct + Field string + Operator string + Value string