Versions in this module Expand all Collapse all v0 v0.0.1 Oct 23, 2019 Changes in this version + func CheckResponse(r *http.Response) error + type ActivityResponse struct + Activities []AgentsActivity + Count *int + Next *string + Previous *string + type ActivityService struct + func (s *ActivityService) List() ([]AgentsActivity, error) + type AgentsActivity struct + AgentID *float64 + AvailableTime *int + AverageTalkTime *int + CallsAccepted *int + CallsDenied *int + CallsMissed *int + Status *string + type Article struct + AuthorID *float64 + Body *string + CommentsDisabled *bool + CreatedAt *string + Draft *bool + HtmlURL *string + ID *float64 + Labels []string + Locale *string + Name *string + Outdated *bool + Position *int64 + Promoted *bool + SectionID *float64 + SourceLocale *string + Title *string + TranslationIds []int64 + URL *string + UpdatedAt *string + VoteCount *int64 + VoteSum *int64 + type ArticleCollectionResponse struct + Count *int64 + Next *string + Page *int64 + PageCount *int64 + PerPage *int64 + Previous *string + Results []Article + type ArticleLabel struct + CreatedAt *string + ID *float64 + Name *string + URL *string + UpdatedAt *string + type ArticleResponse struct + Article *Article + type ArticleService struct + func (s *ArticleService) Create(a *Article) (*Article, error) + func (s *ArticleService) Delete(id *int64) error + func (s *ArticleService) List() ([]Article, error) + func (s *ArticleService) Update(a *Article) error + type Category struct + CreatedAt string + Description string + HtmlURL string + ID float64 + Locale string + Name string + Outdated bool + Position float64 + SourceLocale string + TranslationIDs []interface{} + URL string + UpdatedAt string + type CategoryService struct + type Client struct + Articles *ArticleService + Labels *LabelService + Organizations *OrganizationService + Search *SearchService + Tickets *TicketService + UserAgent string + Users *UserService + func NewClient(dmn, usrname, passwd string, httpClient *http.Client) *Client + func (c *Client) Do(req *http.Request, v interface{}) (*Response, error) + func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + type Comment struct + AuthorID *int + Body *string + Public *bool + type CustomField struct + ID *float64 + Value interface{} + type ErrorResponse struct + Description *string + Details interface{} + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + type Group struct + CreatedAt *string + Deleted *bool + ID *float64 + Name *string + URL *string + UpdatedAt *string + type LabelCollectionResponse struct + Count *int64 + Next *string + Page *int64 + PageCount *int64 + PerPage *int64 + Previous *string + Results []ArticleLabel + type LabelResponse struct + Label *ArticleLabel + type LabelService struct + func (s *LabelService) Create(id *int64, l *ArticleLabel) (*ArticleLabel, error) + func (s *LabelService) Delete(articleID, id *int64) error + func (s *LabelService) Get(id *int64) ([]ArticleLabel, error) + func (s *LabelService) List() ([]ArticleLabel, error) + type Organization struct + CreatedAt *string + Details *string + DomainNames []string + ExternalID *string + GroupID *int + ID *int + Name *string + Notes *string + OrganizationFields map[string]string + SharedComments *bool + SharedTickets *bool + Tags []string + URL *string + UpdatedAt *string + type OrganizationCollectionResponse struct + Count *int + NextPage *string + Organizations []Organization + PreviousPage *string + type OrganizationResponse struct + Organization *Organization + type OrganizationSearchResponse struct + Count *int + NextPage *string + Organizations []Organization + PreviousPage *string + type OrganizationService struct + func (s *OrganizationService) Create(org *Organization) (*Organization, error) + func (s *OrganizationService) Get(organizationID string) (*Organization, *Response, error) + func (s *OrganizationService) Update(org *Organization) (*Organization, error) + type Photo struct + ContentType *string + ContentURL *string + FileName *string + ID *int + Inline *bool + MappedContentURL *string + Size *int + Thumbnails []Thumbnail + URL *string + type Response struct + type SatisfactionRating struct + Comment *string + ID *float64 + Score *string + type SearchService struct + func (s *SearchService) OrganizationByName(name string) (*OrganizationSearchResponse, error) + type Section struct + CategoryID *float64 + CreatedAt *string + Description *string + HtmlURL *string + ID *float64 + InternalRestrictionTags []string + Locale *string + Name *string + Outdated *bool + Position *float64 + RestrictToManager *bool + RestrictedRestrictionTags []string + RestrictionGroupIds []string + RestrictionOrganizationIds []string + Sorting *string + SourceLocale *string + TranslationIds []string + URL *string + UpdatedAt *string + Visibility *string + type SectionService struct + type Thumbnail struct + ContentType *string + ContentURL *string + FileName *string + ID *int + Inline *bool + MappedContentURL *string + Size *int + URL *string + type Ticket struct + AssigneeID *float64 + BrandID *float64 + CollaboratorIDs []float64 + Comment *Comment + CreatedAt *string + CustomFields []CustomField + Description *string + DueAt *string + ExternalID *string + FollowupIds []float64 + ForumTopicID *float64 + GroupID *float64 + HasIncidents *bool + ID *float64 + OrganizationID *float64 + Priority *string + ProblemID *float64 + Recipient *string + Requester *User + RequesterID *float64 + SatisfactionRating *SatisfactionRating + SharingAgreementIds []float64 + Status *string + Subject *string + SubmitterID *float64 + Tags []string + TicketFormID *float64 + Type *string + URL *string + UpdatedAt *string + Via *Via + type TicketCollectionResponse struct + Count *int + Next *string + Previous *string + Results []Ticket + type TicketResponse struct + Ticket Ticket + type TicketService struct + func (s *TicketService) Create(ticket *Ticket) (*Ticket, *Response, error) + func (s *TicketService) Get(id string) (*Ticket, *Response, error) + func (s *TicketService) GetProblemIncidents(id string) ([]Ticket, error) + func (s *TicketService) GetProblemIncidentsCount(id string) (int, error) + func (s *TicketService) List() ([]Ticket, error) + func (s *TicketService) ListByView(id string) ([]Ticket, error) + func (s *TicketService) ListByViewUG(id string) ([]Ticket, []User, []Group, error) + func (s *TicketService) Update(ticket *Ticket) (*Ticket, *Response, error) + type TicketUserGroupResponse struct + Count *int + Groups []Group + Next *string + Previous *string + Tickets []Ticket + Users []User + type Translation struct + Body *string + CreatedAt *time.Time + CreatedByID *int + Draft *bool + HTMLURL *string + Hidden *bool + ID *int + Locale *string + Outdated *bool + SourceID *int + SourceType *string + Title *string + URL *string + UpdatedAt *time.Time + UpdatedByID *int + type TranslationResponse struct + Translation *Translation + type User struct + Active *bool + Alias *string + ChatOnly *bool + CreatedAt *time.Time + CustomRoleID *int + Details *string + Email *string + ExternalID *string + ID *int + LastLoginAt *time.Time + Locale *string + LocaleID *int + Moderator *bool + Name *string + Notes *string + OnlyPrivateComments *bool + OrganizationID *int + Phone *string + Photo *Photo + RestrictedAgent *bool + Role *string + Shared *bool + SharedAgent *bool + Signature *string + Suspended *bool + Tags []string + TicketRestriction *string + TimeZone *string + TwoFactorAuthEnabled *bool + URL *string + UpdatedAt *time.Time + UserFields map[string]interface{} + Verified *bool + type UserResponse struct + Count *int + Next *string + Previous *string + Users []User + type UserService struct + func (s *UserService) List() ([]User, error) + type Via struct + Channel *string + Source *interface{}