Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calendar ¶
type Calendar struct {
ID int64 `json:"id"`
Name string `json:"name"`
Kind string `json:"kind"`
Owned bool `json:"owned"`
Personal bool `json:"personal"`
External bool `json:"external"`
URL string `json:"url"`
RecordingsURL string `json:"recordings_url"`
OccurrencesURL string `json:"occurrences_url"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
type Entry ¶
type Entry struct {
ID int64 `json:"id"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Creator Contact `json:"creator"`
AlternativeSenderName string `json:"alternative_sender_name"`
Summary string `json:"summary"`
Kind string `json:"kind"`
AppURL string `json:"app_url"`
Body string `json:"body,omitempty"`
BodyHTML string `json:"-"`
Recipients []Contact `json:"recipients,omitempty"`
}
type JournalEntry ¶
type Posting ¶
type Posting struct {
ID int64 `json:"id"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
ObservedAt string `json:"observed_at"`
Kind string `json:"kind"`
Name string `json:"name"`
Seen bool `json:"seen"`
Bundled bool `json:"bundled"`
Muted bool `json:"muted"`
Summary string `json:"summary"`
EntryKind string `json:"entry_kind"`
IncludesAttachments bool `json:"includes_attachments"`
BubbledUp bool `json:"bubbled_up"`
AppURL string `json:"app_url"`
Creator Contact `json:"creator"`
AlternativeSenderName string `json:"alternative_sender_name"`
VisibleEntryCount int32 `json:"visible_entry_count"`
Extenzions []Extenzion `json:"extenzions,omitempty"`
TopicID int64 `json:"topic_id"`
Topic *Topic `json:"topic,omitempty"`
}
func (*Posting) ResolveTopicID ¶
ResolveTopicID returns the topic ID for this posting, preferring the embedded topic_id/topic fields, then parsing from app_url. Returns 0 if no topic ID can be determined (e.g. bundles).
type Recording ¶
type Recording struct {
ID int64 `json:"id"`
ParentID *int64 `json:"parent_id"`
Title string `json:"title"`
AllDay bool `json:"all_day"`
Recurring bool `json:"recurring"`
StartsAt string `json:"starts_at"`
EndsAt string `json:"ends_at"`
StartsAtTimeZone string `json:"starts_at_time_zone"`
EndsAtTimeZone string `json:"ends_at_time_zone"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Type string `json:"type"`
CompletedAt string `json:"completed_at,omitempty"`
Label string `json:"label,omitempty"`
Calendar *Calendar `json:"calendar,omitempty"`
RemindersLabel string `json:"reminders_label,omitempty"`
OccurrencesURL string `json:"occurrences_url,omitempty"`
Content string `json:"content,omitempty"`
}
type RecordingsResponse ¶
type Topic ¶
type Topic struct {
ID int64 `json:"id"`
Name string `json:"name"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
AccountID int64 `json:"account_id"`
AppURL string `json:"app_url"`
Creator Contact `json:"creator"`
Contacts []Contact `json:"contacts"`
LatestEntry *Entry `json:"latest_entry,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.