Versions in this module Expand all Collapse all v1 v1.0.6 May 21, 2024 v1.0.5 Feb 20, 2024 v1.0.4 Feb 15, 2024 v1.0.3 Jan 25, 2024 Changes in this version + const ReamazeFilterAll + const ReamazeFilterArchived + const ReamazeFilterOpen + const ReamazeFilterUnassigned + const ReamazeSortChanged + const ReamazeSortCreatedAt + const ReamazeSortUpdated + type ArticlesOption interface + Apply func(*ReamazeArticlesOptions) + type Client struct + func NewClient(email, apiToken, brand string) (*Client, error) + func (c *Client) CreateArticle(req *CreateArticleRequest) (*CreateArticleResponse, error) + func (c *Client) CreateContact(req *CreateContactRequest) (*GetContactResponse, error) + func (c *Client) CreateContactIdentities(identifier string, req *CreateContactIdentitiesRequest, ...) (*GetContactIdentitiesResponse, error) + func (c *Client) CreateConversation(req *CreateConversationRequest) (*CreateConversationResponse, error) + func (c *Client) CreateIncident(req *CreateIncidentRequest) (*CreateIncidentResponse, error) + func (c *Client) CreateMessage(slug string, req *CreateMessageRequest) (*CreateMessageResponse, error) + func (c *Client) CreateNote(identifier string, req *CreateNoteRequest) (*CreateNoteResponse, error) + func (c *Client) CreateResponseTemplate(req *CreateResponseTemplateRequest) (*CreateResponseTemplateResponse, error) + func (c *Client) CreateStaff(req *CreateStaffRequest) (*CreateStaffResponse, error) + func (c *Client) DeleteNote(identifier string, noteID string) (*DeleteNoteResponse, error) + func (c *Client) GetArticle(slug string) (*GetArticleResponse, error) + func (c *Client) GetArticles(o ...ArticlesOption) (*GetArticlesResponse, error) + func (c *Client) GetChannel(slug string) (*GetChannelResponse, error) + func (c *Client) GetChannels() (*GetChannelsResponse, error) + func (c *Client) GetContact(identifier string) (*GetContactResponse, error) + func (c *Client) GetContactIdentities(identifier string) (*GetContactIdentitiesResponse, error) + func (c *Client) GetContacts() (*GetContactsResponse, error) + func (c *Client) GetConversation(slug string) (*GetConversationResponse, error) + func (c *Client) GetConversations(o ...ConversationsOption) (*GetConversationsResponse, error) + func (c *Client) GetIncident(identifier string) (*GetIncidentResponse, error) + func (c *Client) GetIncidents() (*GetIncidentsResponse, error) + func (c *Client) GetMessages() (*GetMessagesResponse, error) + func (c *Client) GetNotes(identifier string) (*GetNotesResponse, error) + func (c *Client) GetReportsChannelSummary(o ...ReportsOption) (*GetReportsChannelSummaryResponse, error) + func (c *Client) GetReportsResponseTime(o ...ReportsOption) (*GetReportsResponseTimeRespone, error) + func (c *Client) GetReportsStaff(o ...ReportsOption) (*GetReportsStaffResponse, error) + func (c *Client) GetReportsTags(o ...ReportsOption) (*GetReportsTagsResponse, error) + func (c *Client) GetReportsVolume(o ...ReportsOption) (*GetReportsVolumeResponse, error) + func (c *Client) GetResponseTemplate(identifier string) (*GetResponseTemplateResponse, error) + func (c *Client) GetResponseTemplates() (*GetResponseTemplatesResponse, error) + func (c *Client) GetStaff(o ...StaffOption) (*GetStaffResponse, error) + func (c *Client) GetSystems() (*GetSystemsResponse, error) + func (c *Client) UpdateArticle(slug string, req *UpdateArticleRequest) (*UpdateArticleResponse, error) + func (c *Client) UpdateContact(identifier string, req *UpdateContactRequest, ...) (*GetContactResponse, error) + func (c *Client) UpdateConversation(slug string, req *UpdateConversationRequest) (*GetConversationResponse, error) + func (c *Client) UpdateIncident(identifier string, req *UpdateIncidentRequest) (*UpdateIncidentResponse, error) + func (c *Client) UpdateNote(identifier string, noteID string, req *UpdateNoteRequest) (*UpdateNoteResponse, error) + func (c *Client) UpdateResponseTemplate(identifier string, req *UpdateResponseTemplateRequest) (*UpdateResponseTemplateResponse, error) + type ConversationsOption interface + Apply func(*ReamazeOptions) + type CreateArticleRequest struct + Article struct{ ... } + type CreateArticleResponse ReamazeArticle + type CreateContactIdentitiesRequest struct + Identity struct{ ... } + type CreateContactRequest struct + Contact struct{ ... } + type CreateConversationRequest struct + Conversation struct{ ... } + type CreateConversationResponse struct + Assignee any + Author struct{ ... } + Category struct{ ... } + CreatedAt time.Time + Data any + DisplaySubject string + Followers []struct{ ... } + HoldUntil any + LastCustomerMessage struct{ ... } + Message struct{ ... } + MessageCount int + Origin int + PermaURL string + ReadOnly bool + Slug string + Status int + Subject string + TagList []string + UpdatedAt time.Time + type CreateIncidentRequest UpdateIncidentRequest + type CreateIncidentResponse GetIncidentResponse + type CreateMessageRequest struct + Message struct{ ... } + type CreateMessageResponse struct + Body string + Conversation struct{ ... } + CreatedAt string + OriginID string + User struct{ ... } + Visibility int + type CreateNoteRequest struct + Body string + CreatedAt time.Time + CreatorEmail string + type CreateNoteResponse Note + type CreateResponseTemplateRequest struct + ResponseTemplate struct{ ... } + type CreateResponseTemplateResponse GetResponseTemplateResponse + type CreateStaffRequest struct + Staff struct{ ... } + type CreateStaffResponse struct + CreatedAt time.Time + DisplayName string + Email string + Name string + NotificationEmail string + Role struct{ ... } + type DeleteNoteResponse Note + type GetArticleResponse ReamazeArticle + type GetArticlesResponse struct + Articles []struct{ ... } + PageCount int + PageSize int + TotalCount int + type GetChannelResponse struct + Brand struct{ ... } + Channel ReamazeChannelType + CreatedAt time.Time + Email string + LastVerified time.Time + Name string + ReplyFromOrigin bool + SettingsReplyFromName string + SettingsSignature string + Slug string + SpamFilterEnabled bool + UpdatedAt time.Time + VerificationEmail string + Verified bool + Visibility ReamazeChannelVisibility + type GetChannelsResponse struct + Channels []struct{ ... } + TotalCount int + type GetContactIdentitiesResponse struct + Identities []struct{ ... } + type GetContactResponse struct + CreatedAt time.Time + Data interface{} + Email string + Facebook string + FriendlyName string + ID string + ID0 int + Instagram string + Mobile string + Name string + Notes []Note + Twitter string + UpdatedAt time.Time + type GetContactsResponse struct + Contacts []struct{ ... } + PageCount int + PageSize int + TotalCount int + type GetConversationResponse struct + Assignee any + Author struct{ ... } + Category struct{ ... } + CreatedAt time.Time + Data any + DisplaySubject string + Followers []struct{ ... } + HoldUntil any + LastCustomerMessage struct{ ... } + Message struct{ ... } + MessageCount int + Origin int + PermaURL string + ReadOnly bool + Slug string + Status int + Subject string + TagList []string + UpdatedAt time.Time + type GetConversationsResponse struct + Conversations []GetConversationResponse + PageCount int + PageSize int + TotalCount int + type GetIncidentResponse struct + CreatedAt string + ID string + IncidentsSystems []struct{ ... } + Status string + Title string + UpdatedAt string + Updates []struct{ ... } + type GetIncidentsResponse []struct + type GetMessagesResponse struct + Messages []struct{ ... } + PageCount int + PageSize int + TotalCount int + type GetNotesResponse []Note + type GetReportsChannelSummaryResponse struct + Channels map[string]struct{ ... } + EndDate string + StartDate string + type GetReportsResponseTimeRespone struct + EndDate string + ResponseTimes map[string]float64 + StartDate string + Summary struct{ ... } + type GetReportsStaffResponse struct + EndDate string + Report struct{ ... } + StartDate string + type GetReportsTagsResponse struct + EndDate string + StartDate string + Tags map[string]int + type GetReportsVolumeResponse struct + ConversationCounts map[string]int + EndDate string + StartDate string + type GetResponseTemplateResponse struct + Body string + ID int + Name string + ResponseTemplateGroup struct{ ... } + type GetResponseTemplatesResponse struct + ResponseTemplates []struct{ ... } + type GetStaffResponse struct + PageCount int + PageSize int + Staff []struct{ ... } + TotalCount int + type GetSystemsResponse []struct + type Note struct + CreatedAt time.Time + Creator struct{ ... } + ID string + Note string + UpdatedAt time.Time + type ReamazeArticle struct + Author struct{ ... } + Body string + CreatedAt time.Time + EmbeddedURL string + Slug string + Status int + Title string + Topic struct{ ... } + URL string + UpdatedAt time.Time + type ReamazeArticlePage int + func WithArticlePage(page int) ReamazeArticlePage + func (w ReamazeArticlePage) Apply(o *ReamazeArticlesOptions) + type ReamazeArticleQuery string + func WithArticleQuery(query string) ReamazeArticleQuery + func (w ReamazeArticleQuery) Apply(o *ReamazeArticlesOptions) + type ReamazeArticleStatus int + const ReamazeArticleStatusDraft + const ReamazeArticleStatusInternal + const ReamazeArticleStatusPublished + func WithArticleStatus(status ReamazeArticleStatus) ReamazeArticleStatus + func (w ReamazeArticleStatus) Apply(o *ReamazeArticlesOptions) + type ReamazeArticlesOptions struct + ReamazeArticlesPage string + ReamazeArticlesQuery string + ReamazeArticlesStatus string + func (r ReamazeArticlesOptions) GetQuery() string + type ReamazeCategory string + func WithCategory(category string) ReamazeCategory + func (w ReamazeCategory) Apply(o *ReamazeOptions) + type ReamazeChannelType int + const ReamazeChannelChat + const ReamazeChannelEmail + const ReamazeChannelFacebook + const ReamazeChannelFacebookLead + const ReamazeChannelFacebookMessanger + const ReamazeChannelInstagram + const ReamazeChannelInstagramAd + const ReamazeChannelInstagramDM + const ReamazeChannelSMS + const ReamazeChannelTwitter + const ReamazeChannelVoice + const ReamazeChannelWhatsApp + func (w ReamazeChannelType) Name() string + type ReamazeChannelVisibility int + const ReamazeChannelVisibilityPrivate + const ReamazeChannelVisibilityPublic + func (w ReamazeChannelVisibility) Name() string + type ReamazeData map[string]string + func WithData(data map[string]string) ReamazeData + func (w ReamazeData) Apply(o *ReamazeOptions) + type ReamazeEndDate time.Time + func WithEndDate(year int, month int, day int) ReamazeEndDate + func (w ReamazeEndDate) Apply(o *ReamazeOptions) + type ReamazeFilter string + func WithFilter(filter ReamazeFilter) ReamazeFilter + func (w ReamazeFilter) Apply(o *ReamazeOptions) + type ReamazeFor string + func WithFor(email string) ReamazeFor + func (w ReamazeFor) Apply(o *ReamazeOptions) + type ReamazeForID string + func WithForID(id string) ReamazeForID + func (w ReamazeForID) Apply(o *ReamazeOptions) + type ReamazeIdentifier string + const ReamazeIdentifierEmail + const ReamazeIdentifierFacebook + const ReamazeIdentifierInstagram + const ReamazeIdentifierMobile + const ReamazeIdentifierTwitter + type ReamazeIncidentSystemStatus string + const ReamazeIncidentSystemStatusDegradedPerformance + const ReamazeIncidentSystemStatusMajorOutage + const ReamazeIncidentSystemStatusOperational + const ReamazeIncidentSystemStatusPartialOutage + const ReamazeIncidentSystemStatusUnderMaintenance + type ReamazeIncidentUpdateStatus string + const ReamazeIncidentUpdateSatusInvestigating + const ReamazeIncidentUpdateStatusIdentified + const ReamazeIncidentUpdateStatusMonitoring + const ReamazeIncidentUpdateStatusResolved + type ReamazeOptions struct + ReamazeCategory string + ReamazeData string + ReamazeEndDate string + ReamazeFilter string + ReamazeFor string + ReamazeForID string + ReamazePage string + ReamazeSort string + ReamazeStartDate string + ReamazeTag string + func (r ReamazeOptions) GetQuery() string + type ReamazePage int + func WithPage(page int) ReamazePage + func (w ReamazePage) Apply(o *ReamazeOptions) + type ReamazePhoneNumber string + func (w ReamazePhoneNumber) Validate() bool + type ReamazeReportOptions struct + ReamazeEndDate string + ReamazeStartDate string + func (r ReamazeReportOptions) GetQuery() string + type ReamazeReportsEndDate time.Time + func WithReportsEndDate(year int, month int, day int) ReamazeReportsEndDate + func (w ReamazeReportsEndDate) Apply(o *ReamazeReportOptions) + type ReamazeReportsStartDate time.Time + func WithReportsStartDate(year, month, day int) ReamazeReportsStartDate + func (w ReamazeReportsStartDate) Apply(o *ReamazeReportOptions) + type ReamazeSort string + func WithSort(sort ReamazeSort) ReamazeSort + func (w ReamazeSort) Apply(o *ReamazeOptions) + type ReamazeStaffOptions struct + ReamazeStaffPage string + func (r ReamazeStaffOptions) GetQuery() string + type ReamazeStaffPage int + func WithStaffPage(page int) ReamazeStaffPage + func (w ReamazeStaffPage) Apply(o *ReamazeStaffOptions) + type ReamazeStartDate time.Time + func WithStartDate(year, month, day int) ReamazeStartDate + func (w ReamazeStartDate) Apply(o *ReamazeOptions) + type ReamazeStatus int + const ReamazeStatusArchived + const ReamazeStatusAutoResolved + const ReamazeStatusChatbotAssigned + const ReamazeStatusChatbotResolved + const ReamazeStatusOnHold + const ReamazeStatusPending + const ReamazeStatusResolved + const ReamazeStatusSpam + const ReamazeStatusUnresolved + type ReamazeTags []string + func WithTags(w ...string) ReamazeTags + func (w ReamazeTags) Apply(o *ReamazeOptions) + type ReamazeVisibility int + const ReamazeVisibilityInternalNote + const ReamazeVisibilityRegular + type ReportsOption interface + Apply func(*ReamazeReportOptions) + type StaffOption interface + Apply func(*ReamazeStaffOptions) + type UpdateArticleRequest ReamazeArticle + type UpdateArticleResponse ReamazeArticle + type UpdateContactRequest struct + Contact struct{ ... } + type UpdateConversationRequest struct + Conversation struct{ ... } + type UpdateIncidentRequest struct + Incident struct{ ... } + type UpdateIncidentResponse GetIncidentResponse + type UpdateNoteRequest CreateNoteRequest + type UpdateNoteResponse Note + type UpdateResponseTemplateRequest CreateResponseTemplateRequest + type UpdateResponseTemplateResponse GetResponseTemplateResponse