Documentation ¶
Index ¶
Constants ¶
View Source
const (
APIVersion = "v5"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Notifications *NotificationsService // contains filtered or unexported fields }
func (*Client) SetTypetalkToken ¶
type DoNotDisturb ¶
type Manual ¶
type Manual struct {
RemainingTimeInMinutes interface{} `json:"remainingTimeInMinutes"`
}
type MyPlan ¶
type MyPlan struct { Plan *Plan `json:"plan"` Enabled bool `json:"enabled"` Trial interface{} `json:"trial"` NumberOfUsers int `json:"numberOfUsers"` NumberOfAllowedAddresses int `json:"numberOfAllowedAddresses"` TotalAttachmentSize int `json:"totalAttachmentSize"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` }
type NotificationCount ¶
type NotificationCount struct { Statuses []*struct { MySpace *MySpace `json:"mySpace"` Access *Access `json:"access"` Like *struct { Receive *struct { HasUnread bool `json:"hasUnread"` ReadLikeID int `json:"readLikeId"` } `json:"receive"` } `json:"like"` Unreads *struct { TopicIds []int `json:"topicIds"` DMTopicIds []int `json:"dmTopicIds"` } `json:"unreads"` } `json:"statuses"` NotificationSettings *struct { FavoriteTopicMobile bool `json:"favoriteTopicMobile"` DoNotDisturb *DoNotDisturb `json:"doNotDisturb"` } `json:"notificationSettings"` }
type NotificationsService ¶
type NotificationsService service
func (*NotificationsService) GetNotificationCount ¶
func (s *NotificationsService) GetNotificationCount(ctx context.Context) (*NotificationCount, *shared.Response, error)
GetNotificationCount fetches notification counts.
Typetalk API docs: https://developer.nulab-inc.com/docs/typetalk/api/5/get-notification-status/
Click to show internal directories.
Click to hide internal directories.