-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#7 Allow to receive ItemId and support calendar refresh #8
base: master
Are you sure you want to change the base?
Conversation
ntlm authorization works with http1.1 protocol only
Sorry didn't notice this... I will to get it meeged soon |
@@ -105,7 +105,12 @@ func (c *client) SendAndReceive(body []byte) ([]byte, error) { | |||
|
|||
func applyConfig(config *Config, client *http.Client) { | |||
if config.NTLM { | |||
client.Transport = ntlmssp.Negotiator{} | |||
client.Transport = ntlmssp.Negotiator{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you elaborate more on this?
} | ||
|
||
// CreateMessageItem | ||
// https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/createitem-operation-email-message | ||
func CreateMessageItem(c Client, m ...Message) error { | ||
func CreateMessageItem(c Client, m ...Message) ([]ItemId, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please move ItemId
from get_room_lists.go
to common.go
?
RequiredAttendees: []ews.Attendees{{Attendee: requiredAttendees}}, | ||
OptionalAttendees: []ews.Attendees{{Attendee: optionalAttendees}}, | ||
Resources: []ews.Attendees{{Attendee: room}}, | ||
// ReminderIsSet: duration != 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you commenting these? at least you might want to pass as options instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR ... much appreciated.
-
Could you please update
README.md
with the newly supported features (e.g. UpdateItem and DeleteItem operations) -
Also, can you make sure the test is passing (I think it is related to this code: -- please see my comments https://github.com/mhewedy/ews/pull/8/files#diff-5eed297ba5350ffc4dcc024fe59a15c40fc6bde8beb0bb8ff588cc19e59d4b30R45)
@johnwiichang Do you mind fix the failing test cases? |
#7 Allow to receive ItemId and support calendar refresh
and also support downgrade when ntlm is selected