Documentation ¶
Overview ¶
Package wrapping Exchange Web Service (EWS)
Index ¶
- Constants
- func CreateCalendarItem(c Client, ci ...CalendarItem) error
- func CreateMessageItem(c Client, m ...Message) error
- func NewError(resp *http.Response) error
- type AdditionalProperties
- type ArrayOfAttendeeConflictData
- type Attendee
- type AttendeeType
- type Attendees
- type BasePoint
- type BaseShape
- type Body
- type BusinessPhoneNumbers
- type BusyType
- type CalendarEvent
- type CalendarEventArray
- type CalendarEventDetails
- type CalendarItem
- type Client
- type Config
- type Contact
- type ContactEntry
- type ContactPhysicalAddressEntry
- type CreateItem
- type Departments
- type DistinguishedFolderId
- type Email
- type EmailAddress
- type ExtendedFieldURI
- type ExtendedProperty
- type Fault
- type FieldURI
- type FindFolderRequest
- type FindFolderResponse
- type FindFolderRootfolder
- type FindItemRequest
- type FindItemResponse
- type FindItemRootfolder
- type FindPeopleRequest
- type FindPeopleResponse
- type Folder
- type FolderId
- type FolderShape
- type FreeBusyResponse
- type FreeBusyResponseArray
- type FreeBusyView
- type FreeBusyViewOptions
- type GetPersonaRequest
- type GetPersonaResponse
- type GetRoomListsRequest
- type GetRoomListsResponse
- type GetSearchableMailboxResponse
- type GetSearchableMailboxesRequest
- type GetSearchableMailboxesResponse
- type GetUserAvailabilityRequest
- type GetUserAvailabilityResponse
- type GetUserPhotoRequest
- type GetUserPhotoResponse
- type GroupAttendeeConflictData
- type HTTPError
- type IndexedPageFolderView
- type IndexedPageItemView
- type ItemId
- type ItemShape
- type Items
- type Mailbox
- type MailboxData
- type MailboxDataArray
- type Message
- type MessageXml
- type MobilePhones
- type OfficeLocations
- type OneMailbox
- type ParentFolderId
- type People
- type Persona
- type PersonaId
- type PersonaShape
- type PhoneNumberAttributedValue
- type Resolution
- type ResolutionMailbox
- type ResolveNamesRequest
- type ResolveNamesResolutionSetResponse
- type ResolveNamesResponse
- type ResolveNamesResponseBody
- type ResolveNamesResponseEnvelop
- type ResolveNamesResponseResponse
- type Response
- type ResponseClass
- type ResponseMessage
- type ResultPagingInfo
- type RoomLists
- type SavedItemFolderId
- type SearchableMailbox
- type SoapError
- type StringAttributedValue
- type Suggestion
- type SuggestionArray
- type SuggestionDayResult
- type SuggestionDayResultArray
- type SuggestionsResponse
- type Time
- type TimeWindow
- type TimeZone
- type TimeZoneTime
- type Traversal
- type Value
- type WorkingHours
- type WorkingPeriod
- type WorkingPeriodArray
- type XMailbox
Constants ¶
View Source
const ( RequestedViewNone = "None" RequestedViewMergedOnly = "MergedOnly" RequestedViewFreeBusy = "FreeBusy" RequestedViewFreeBusyMerged = "FreeBusyMerged" RequestedViewDetailed = "Detailed" RequestedViewDetailedMerged = "DetailedMerged" )
View Source
const ( BusyTypeFree = "Free" BusyTypeTentative = "Tentative" BusyTypeBusy = "Busy" BusyTypeOOF = "OOF" BusyTypeNoData = "NoData" )
Variables ¶
This section is empty.
Functions ¶
func CreateCalendarItem ¶
func CreateCalendarItem(c Client, ci ...CalendarItem) error
CreateCalendarItem https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/createitem-operation-calendar-item
Types ¶
type AdditionalProperties ¶
type AdditionalProperties struct { FieldURI []FieldURI `xml:"t:FieldURI,omitempty"` ExtendedFieldURI []ExtendedFieldURI `xml:"t:ExtendedFieldURI,omitempty"` }
type ArrayOfAttendeeConflictData ¶
type ArrayOfAttendeeConflictData struct { UnknownAttendeeConflictData string `xml:"UnknownAttendeeConflictData"` IndividualAttendeeConflictData string `xml:"IndividualAttendeeConflictData"` TooBigGroupAttendeeConflictData string `xml:"TooBigGroupAttendeeConflictData"` GroupAttendeeConflictData GroupAttendeeConflictData `xml:"GroupAttendeeConflictData"` }
type AttendeeType ¶
type AttendeeType string
const ( AttendeeTypeOrganizer AttendeeType = "Organizer" AttendeeTypeRequired AttendeeType = "Required" AttendeeTypeOptional AttendeeType = "Optional" AttendeeTypeRoom AttendeeType = "Room" AttendeeTypeResource AttendeeType = "Resource" )
type BusinessPhoneNumbers ¶
type BusinessPhoneNumbers struct {
PhoneNumberAttributedValue PhoneNumberAttributedValue `xml:"PhoneNumberAttributedValue"`
}
type CalendarEvent ¶
type CalendarEvent struct { StartTime Time `xml:"StartTime"` EndTime Time `xml:"EndTime"` BusyType BusyType `xml:"BusyType"` CalendarEventDetails CalendarEventDetails `xml:"CalendarEventDetails"` }
type CalendarEventArray ¶
type CalendarEventArray struct {
CalendarEvent []CalendarEvent `xml:"CalendarEvent"`
}
type CalendarEventDetails ¶
type CalendarEventDetails struct { ID string `xml:"ID"` Subject string `xml:"Subject"` Location string `xml:"Location"` IsMeeting bool `xml:"IsMeeting"` IsRecurring bool `xml:"IsRecurring"` IsException bool `xml:"IsException"` IsReminderSet bool `xml:"IsReminderSet"` IsPrivate bool `xml:"IsPrivate"` }
type CalendarItem ¶
type CalendarItem struct { Subject string `xml:"t:Subject"` Body Body `xml:"t:Body"` ReminderIsSet bool `xml:"t:ReminderIsSet"` ReminderMinutesBeforeStart int `xml:"t:ReminderMinutesBeforeStart"` Start time.Time `xml:"t:Start"` End time.Time `xml:"t:End"` IsAllDayEvent bool `xml:"t:IsAllDayEvent"` LegacyFreeBusyStatus string `xml:"t:LegacyFreeBusyStatus"` Location string `xml:"t:Location"` RequiredAttendees []Attendees `xml:"t:RequiredAttendees"` OptionalAttendees []Attendees `xml:"t:OptionalAttendees"` Resources []Attendees `xml:"t:Resources"` }
type Client ¶
type Contact ¶
type Contact struct { DisplayName string `xml:"DisplayName"` GivenName string `xml:"GivenName"` Surname string `xml:"Surname"` Culture string `xml:"Culture"` Initials string `xml:"Initials"` CompanyName string `xml:"CompanyName"` AssistantName string `xml:"AssistantName"` ContactSource string `xml:"ContactSource"` Department string `xml:"Department"` JobTitle string `xml:"JobTitle"` OfficeLocation string `xml:"OfficeLocation"` EmailAddresses []ContactEntry `xml:"EmailAddresses>Entry"` PhoneNumbers []ContactEntry `xml:"PhoneNumbers>Entry"` PhysicalAddresses []ContactPhysicalAddressEntry `xml:"PhysicalAddresses>Entry"` }
type ContactEntry ¶
type CreateItem ¶
type CreateItem struct { XMLName struct{} `xml:"m:CreateItem"` MessageDisposition string `xml:"MessageDisposition,attr"` SendMeetingInvitations string `xml:"SendMeetingInvitations,attr"` SavedItemFolderId SavedItemFolderId `xml:"m:SavedItemFolderId"` Items Items `xml:"m:Items"` }
type Departments ¶
type Departments struct {
StringAttributedValue StringAttributedValue `xml:"StringAttributedValue"`
}
type DistinguishedFolderId ¶
type DistinguishedFolderId struct { // List of values: // https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/distinguishedfolderid Id string `xml:"Id,attr,omitempty"` Mailbox *Mailbox `xml:"t:Mailbox,omitempty"` }
type EmailAddress ¶
type ExtendedFieldURI ¶
type ExtendedProperty ¶
type ExtendedProperty struct { ExtendedFieldURI ExtendedFieldURI `xml:"ExtendedFieldURI"` Value string `xml:"Value"` }
type FieldURI ¶
type FieldURI struct { // List of possible values: // https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/fielduri FieldURI string `xml:"FieldURI,attr,omitempty"` }
type FindFolderRequest ¶
type FindFolderRequest struct { XMLName xml.Name `xml:"m:FindFolder"` Traversal Traversal `xml:"Traversal,attr,omitempty"` FolderShape FolderShape `xml:"m:FolderShape"` ParentFolderIds ParentFolderId `xml:"m:ParentFolderIds"` IndexedPageFolderView IndexedPageFolderView `xml:"m:IndexedPageFolderView"` }
type FindFolderResponse ¶
type FindFolderResponse struct { Response RootFolder FindFolderRootfolder `xml:"RootFolder"` }
func FindFolder ¶
func FindFolder(c Client, r *FindFolderRequest) (*FindFolderResponse, error)
type FindFolderRootfolder ¶
type FindFolderRootfolder struct { ResultPagingInfo Folders []Folder `xml:"Folders>Folder"` ContactsFolder []Folder `xml:"Folders>ContactsFolder"` }
type FindItemRequest ¶
type FindItemRequest struct { XMLName xml.Name `xml:"m:FindItem"` Traversal Traversal `xml:"Traversal,attr,omitempty"` ItemShape ItemShape `xml:"m:ItemShape"` ParentFolderIds ParentFolderId `xml:"m:ParentFolderIds"` IndexedPageItemView IndexedPageItemView `xml:"m:IndexedPageItemView"` }
type FindItemResponse ¶
type FindItemResponse struct { Response RootFolder FindItemRootfolder `xml:"RootFolder"` }
func FindItem ¶
func FindItem(c Client, r *FindItemRequest) (*FindItemResponse, error)
type FindItemRootfolder ¶
type FindItemRootfolder struct { ResultPagingInfo Contacts []Contact `xml:"Items>Contact"` }
type FindPeopleRequest ¶
type FindPeopleRequest struct { XMLName struct{} `xml:"m:FindPeople"` PersonaShape *PersonaShape `xml:"m:PersonaShape,omitempty"` IndexedPageItemView IndexedPageItemView `xml:"m:IndexedPageItemView"` ParentFolderId ParentFolderId `xml:"m:ParentFolderId"` QueryString string `xml:"m:QueryString,omitempty"` }
type FindPeopleResponse ¶
type FindPeopleResponse struct { Response People People `xml:"People"` TotalNumberOfPeopleInView int `xml:"TotalNumberOfPeopleInView"` FirstMatchingRowIndex int `xml:"FirstMatchingRowIndex"` FirstLoadedRowIndex int `xml:"FirstLoadedRowIndex"` }
func FindPeople ¶
func FindPeople(c Client, r *FindPeopleRequest) (*FindPeopleResponse, error)
GetUserAvailability https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/findpeople-operation
type Folder ¶
type Folder struct { FolderId FolderId `xml:"FolderId"` DisplayName string `xml:"DisplayName"` TotalCount int `xml:"TotalCount"` ChildFolderCount int `xml:"ChildFolderCount"` ExtendedProperty ExtendedProperty `xml:"ExtendedProperty"` }
type FolderShape ¶
type FolderShape struct { BaseShape BaseShape `xml:"t:BaseShape"` AdditionalProperties AdditionalProperties `xml:"t:AdditionalProperties"` }
type FreeBusyResponse ¶
type FreeBusyResponse struct { ResponseMessage ResponseMessage `xml:"ResponseMessage"` FreeBusyView FreeBusyView `xml:"FreeBusyView"` }
type FreeBusyResponseArray ¶
type FreeBusyResponseArray struct {
FreeBusyResponse []FreeBusyResponse `xml:"FreeBusyResponse"`
}
type FreeBusyView ¶
type FreeBusyView struct { FreeBusyViewType string `xml:"FreeBusyViewType"` MergedFreeBusy string `xml:"MergedFreeBusy"` CalendarEventArray CalendarEventArray `xml:"CalendarEventArray"` WorkingHours WorkingHours `xml:"WorkingHours"` }
type FreeBusyViewOptions ¶
type FreeBusyViewOptions struct { TimeWindow TimeWindow `xml:"t:TimeWindow"` MergedFreeBusyIntervalInMinutes int `xml:"t:MergedFreeBusyIntervalInMinutes,omitempty"` RequestedView string `xml:"t:RequestedView"` }
type GetPersonaRequest ¶
type GetPersonaRequest struct { XMLName struct{} `xml:"m:GetPersona"` PersonaId PersonaId `xml:"m:PersonaId"` }
type GetPersonaResponse ¶
func GetPersona ¶
func GetPersona(c Client, r *GetPersonaRequest) (*GetPersonaResponse, error)
type GetRoomListsRequest ¶
type GetRoomListsRequest struct {
XMLName struct{} `xml:"m:GetRoomLists"`
}
type GetRoomListsResponse ¶
func GetRoomLists ¶
func GetRoomLists(c Client) (*GetRoomListsResponse, error)
type GetSearchableMailboxResponse ¶
type GetSearchableMailboxResponse struct {
SearchableMailboxes []SearchableMailbox `xml:"SearchableMailbox"`
}
type GetSearchableMailboxesRequest ¶
type GetSearchableMailboxesRequest struct {
XMLName struct{} `xml:"m:GetSearchableMailboxes"`
}
type GetSearchableMailboxesResponse ¶
type GetSearchableMailboxesResponse struct { Response AllSearchableMailboxes GetSearchableMailboxResponse `xml:"SearchableMailboxes"` }
func GetSearchableMailboxes ¶
func GetSearchableMailboxes(c Client, r *GetSearchableMailboxesRequest) (*GetSearchableMailboxesResponse, error)
type GetUserAvailabilityRequest ¶
type GetUserAvailabilityRequest struct { XMLName struct{} `xml:"m:GetUserAvailabilityRequest"` TimeZone TimeZone `xml:"t:TimeZone"` MailboxDataArray MailboxDataArray `xml:"m:MailboxDataArray"` FreeBusyViewOptions FreeBusyViewOptions `xml:"t:FreeBusyViewOptions"` }
type GetUserAvailabilityResponse ¶
type GetUserAvailabilityResponse struct { FreeBusyResponseArray FreeBusyResponseArray `xml:"FreeBusyResponseArray"` SuggestionsResponse SuggestionsResponse `xml:"SuggestionsResponse"` }
func GetUserAvailability ¶
func GetUserAvailability(c Client, r *GetUserAvailabilityRequest) (*GetUserAvailabilityResponse, error)
GetUserAvailability https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/getuseravailability-operation
type GetUserPhotoRequest ¶
type GetUserPhotoResponse ¶
type GetUserPhotoResponse struct { Response HasChanged bool `xml:"HasChanged"` PictureData string `xml:"PictureData"` }
func GetUserPhoto ¶
func GetUserPhoto(c Client, r *GetUserPhotoRequest) (*GetUserPhotoResponse, error)
GetUserPhoto https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/getuserphoto-operation
type IndexedPageFolderView ¶
type IndexedPageFolderView IndexedPageItemView
type IndexedPageItemView ¶
type ItemShape ¶
type ItemShape struct { BaseShape BaseShape `xml:"t:BaseShape,omitempty"` AdditionalProperties AdditionalProperties `xml:"t:AdditionalProperties,omitempty"` }
type Items ¶
type Items struct { Message []Message `xml:"t:Message"` CalendarItem []CalendarItem `xml:"t:CalendarItem"` }
type MailboxData ¶
type MailboxData struct { Email Email `xml:"t:Email"` AttendeeType AttendeeType `xml:"t:AttendeeType"` ExcludeConflicts bool `xml:"t:ExcludeConflicts"` }
type MailboxDataArray ¶
type MailboxDataArray struct {
MailboxData []MailboxData `xml:"t:MailboxData"`
}
type Message ¶
type Message struct { ItemClass string `xml:"t:ItemClass"` Subject string `xml:"t:Subject"` Body Body `xml:"t:Body"` Sender OneMailbox `xml:"t:Sender"` ToRecipients XMailbox `xml:"t:ToRecipients"` }
type MessageXml ¶
type MobilePhones ¶
type MobilePhones struct {
PhoneNumberAttributedValue PhoneNumberAttributedValue `xml:"PhoneNumberAttributedValue"`
}
type OfficeLocations ¶
type OfficeLocations struct {
StringAttributedValue StringAttributedValue `xml:"StringAttributedValue"`
}
type OneMailbox ¶
type OneMailbox struct {
Mailbox Mailbox `xml:"t:Mailbox"`
}
type ParentFolderId ¶
type ParentFolderId struct { FolderId *FolderId `xml:"t:FolderId,omitempty"` DistinguishedFolderId *DistinguishedFolderId `xml:"t:DistinguishedFolderId,omitempty"` }
type Persona ¶
type Persona struct { PersonaId PersonaId `xml:"PersonaId"` DisplayName string `xml:"DisplayName"` Title string `xml:"Title"` Department string `xml:"Department"` Departments Departments `xml:"Departments"` EmailAddress EmailAddress `xml:"EmailAddress"` RelevanceScore int `xml:"RelevanceScore"` BusinessPhoneNumbers BusinessPhoneNumbers `xml:"BusinessPhoneNumbers"` MobilePhones MobilePhones `xml:"MobilePhones"` OfficeLocations OfficeLocations `xml:"OfficeLocations"` }
type PersonaShape ¶
type PersonaShape struct { BaseShape BaseShape `xml:"t:BaseShape,omitempty"` AdditionalProperties AdditionalProperties `xml:"t:AdditionalProperties,omitempty"` }
type PhoneNumberAttributedValue ¶
type PhoneNumberAttributedValue struct {
Value Value `json:"Value"`
}
type Resolution ¶
type Resolution struct { Mailbox ResolutionMailbox `xml:"Mailbox"` Contact Contact `xml:"Contact"` }
type ResolutionMailbox ¶
type ResolveNamesRequest ¶
type ResolveNamesResolutionSetResponse ¶
type ResolveNamesResolutionSetResponse struct { ResultPagingInfo Resolutions []Resolution `xml:"Resolution"` }
type ResolveNamesResponse ¶
type ResolveNamesResponse struct { Response ResolutionSet ResolveNamesResolutionSetResponse `xml:"ResolutionSet"` }
func ResolveNames ¶
func ResolveNames(c Client, r *ResolveNamesRequest) (*ResolveNamesResponse, error)
type ResolveNamesResponseBody ¶
type ResolveNamesResponseBody struct {
ResolveNamesResponseMessage ResolveNamesResponse `xml:"ResolveNamesResponse>ResponseMessages>ResolveNamesResponseMessage"`
}
type ResolveNamesResponseEnvelop ¶
type ResolveNamesResponseEnvelop struct { XMLName struct{} `xml:"Envelope"` Body ResolveNamesResponseBody `xml:"Body"` }
type ResolveNamesResponseResponse ¶
type ResolveNamesResponseResponse struct {
ResponseMessages ResolveNamesResponse `xml:"ResponseMessages"`
}
type Response ¶
type Response struct { ResponseClass ResponseClass `xml:"ResponseClass,attr"` MessageText string `xml:"MessageText"` ResponseCode string `xml:"ResponseCode"` MessageXml MessageXml `xml:"MessageXml"` }
type ResponseClass ¶
type ResponseClass string
const ( ResponseClassSuccess ResponseClass = "Success" ResponseClassWarning ResponseClass = "Warning" ResponseClassError ResponseClass = "Error" )
type ResponseMessage ¶
type ResultPagingInfo ¶
type RoomLists ¶
type RoomLists struct {
Address []EmailAddress `xml:"Address"`
}
type SavedItemFolderId ¶
type SavedItemFolderId struct {
DistinguishedFolderId DistinguishedFolderId `xml:"t:DistinguishedFolderId"`
}
type SearchableMailbox ¶
type SearchableMailbox struct { Guid string `xml:"Guid"` PrimarySmtpAddress string `xml:"PrimarySmtpAddress"` IsExternalMailbox bool `xml:"IsExternalMailbox"` ExternalEmailAddress string `xml:"ExternalEmailAddress"` DisplayName string `xml:"DisplayName"` IsMembershipGroup bool `xml:"IsMembershipGroup"` ReferenceId string `xml:"ReferenceId"` }
type StringAttributedValue ¶
type StringAttributedValue struct {
Value string `json:"Value"`
}
type Suggestion ¶
type Suggestion struct { MeetingTime time.Time `xml:"MeetingTime"` IsWorkTime bool `xml:"IsWorkTime"` SuggestionQuality string `xml:"SuggestionQuality"` ArrayOfAttendeeConflictData ArrayOfAttendeeConflictData `xml:"ArrayOfAttendeeConflictData"` }
type SuggestionArray ¶
type SuggestionArray struct {
Suggestion []Suggestion `xml:"Suggestion"`
}
type SuggestionDayResult ¶
type SuggestionDayResult struct { Date time.Time `xml:"Date"` DayQuality string `xml:"DayQuality"` SuggestionArray SuggestionArray `xml:"SuggestionArray"` }
type SuggestionDayResultArray ¶
type SuggestionDayResultArray struct {
SuggestionDayResult []SuggestionDayResult `xml:"SuggestionDayResult"`
}
type SuggestionsResponse ¶
type SuggestionsResponse struct { ResponseMessage ResponseMessage `xml:"ResponseMessage"` SuggestionDayResultArray SuggestionDayResultArray `xml:"SuggestionDayResultArray"` }
type TimeWindow ¶
type TimeZone ¶
type TimeZone struct { Bias int `xml:"t:Bias"` StandardTime TimeZoneTime `xml:"t:StandardTime"` DaylightTime TimeZoneTime `xml:"t:DaylightTime"` }
type TimeZoneTime ¶
type WorkingHours ¶
type WorkingHours struct { TimeZone TimeZone `xml:"TimeZone"` WorkingPeriodArray WorkingPeriodArray `xml:"WorkingPeriodArray"` }
type WorkingPeriod ¶
type WorkingPeriodArray ¶
type WorkingPeriodArray struct {
WorkingPeriod []WorkingPeriod `xml:"WorkingPeriod"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.