forked from jamesiarmes/php-ews
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating SetItemField code to support multiple values of an entry. Ma…
…inly the contact physical address. Still needs cleaning before release
- Loading branch information
Showing
3 changed files
with
62 additions
and
9 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
Resources/recordings/garethp/ews/Test/API/ExchangeAutodiscoverTest.testGetAPI.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"error":true,"errorClass":"GuzzleHttp\\Exception\\ConnectException","errorMessage":"cURL error 6: Could not resolve host: www.garethp.onmicrosoft.com (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","request":{"method":"POST","uri":"https:\/\/www.garethp.onmicrosoft.com\/autodiscover\/autodiscover.xml","headers":{"Content-Length":["376"],"User-Agent":["GuzzleHttp\/6.2.0 curl\/7.47.0 PHP\/7.0.4-7ubuntu2"],"Host":["www.garethp.onmicrosoft.com"],"Content-Type":["text\/xml; charset=utf-8"]},"body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Autodiscover xmlns=\"http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/outlook\/requestschema\/2006\">\n <Request>\n <EMailAddress>Garethp@garethp.onmicrosoft.com<\/EMailAddress>\n <AcceptableResponseSchema>http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/outlook\/responseschema\/2006a<\/AcceptableResponseSchema>\n <\/Request>\n<\/Autodiscover>"}},{"error":true,"errorClass":"GuzzleHttp\\Exception\\ConnectException","errorMessage":"cURL error 7: Failed to connect to autodiscover.garethp.onmicrosoft.com port 443: Connection refused (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","request":{"method":"POST","uri":"https:\/\/autodiscover.garethp.onmicrosoft.com\/autodiscover\/autodiscover.xml","headers":{"Content-Length":["376"],"User-Agent":["GuzzleHttp\/6.2.0 curl\/7.47.0 PHP\/7.0.4-7ubuntu2"],"Host":["autodiscover.garethp.onmicrosoft.com"],"Content-Type":["text\/xml; charset=utf-8"]},"body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Autodiscover xmlns=\"http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/outlook\/requestschema\/2006\">\n <Request>\n <EMailAddress>Garethp@garethp.onmicrosoft.com<\/EMailAddress>\n <AcceptableResponseSchema>http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/outlook\/responseschema\/2006a<\/AcceptableResponseSchema>\n <\/Request>\n<\/Autodiscover>"}},{"error":false,"statusCode":302,"headers":{"Cache-Control":["no-cache"],"Pragma":["no-cache"],"Location":["https:\/\/autodiscover-s.outlook.com\/autodiscover\/autodiscover.xml"],"Server":["Microsoft-IIS\/8.0"],"X-FEServer":["DB4PR04CA0014","DB4PR04CA0014"],"X-RequestId":["368e192a-edd5-4498-9685-8bd409312be7"],"X-Powered-By":["ASP.NET"],"Date":["Tue, 10 May 2016 09:03:39 GMT"],"Connection":["close"],"Content-Length":["0"]},"body":""},{"error":false,"statusCode":200,"headers":{"Cache-Control":["private"],"Content-Type":["text\/xml; charset=utf-8"],"Server":["Microsoft-IIS\/8.0"],"request-id":["45541f13-a0e7-497e-8546-643f30a02bcf"],"X-CalculatedBETarget":["db5pr0401mb1877.eurprd04.prod.outlook.com"],"X-DiagInfo":["DB5PR0401MB1877"],"X-BEServer":["DB5PR0401MB1877"],"X-AspNet-Version":["4.0.30319"],"Set-Cookie":["EXOBasicAuth=compactTicket=t%3dEwBIA9P5AwAUo4xeBIbHjhBxWOFekj4Xy2fhaGQAATi%2fzPBlvuKUwMz5g5%2b4WLHg%2f384uZFqMIgBj1gZkL7mfqhB25cTVNAq6wDcKunVGEWU%2bgguR9Msy4jIr1SDtPvW%2fPd%2bMbcDdubv%2bo45cCHS9U5hbYW0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.autodiscover+87.233.232.233+&signature=nzbUXU8K2IsrIQXSaGs9BSXFb\/6g19IYNZSHzOJcqNFspRedixAU9bLL2N9UI8jV6e0qop4Jc9N6InuNHViegL06p5T4XtPauHaAr4xN1B13Y+a5HqGUHMdnJsinZ8CVUBrQ9fCjPvefV8zhKfi1WYevP9ZTeaNAPnbVPGT3r7+QlMafzPNIIJ4E5ZwlIHJk+iXw5LShQ2u1VmOO8CzvMCDd+ecEvRbzubF2KTi9Zt+reAG9HV+q5A8TT76631nKD5J06sgnuEqPzzJfKlsKwvQqDlnzwD+Pm8ZiCUNIipWDNLC47BE5l3AxJDeMIDz\/RQupEB+Ppd32W30l0isZOg==&puid=10030000968CF53F&expireTime=635984966200000000&membername=Garethp%40garethp.onmicrosoft.com&flags=False&userType=ManagedBusiness; expires=Tue, 10-May-2016 17:03:40 GMT; path=\/autodiscover; secure; HttpOnly","X-BackEndCookie2=Garethp@garethp.onmicrosoft.com=u56Lnp2ejJqBx8ibx5zJxsjSy8\/PnNLLnsad0p7HzcvSy53NzZ3HysrMysjKgZiejZqLl4\/RkJGSlpyNkIyQmYvRnJCSgc3PzsnSz8nSz8arz8bFz8zFy86BmoqNj42bz8vRj42Qm9GQiouTkJCU0ZyQkoHP; expires=Thu, 09-Jun-2016 09:03:41 GMT; path=\/autodiscover; secure; HttpOnly","X-BackEndCookie=Garethp@garethp.onmicrosoft.com=u56Lnp2ejJqBx8ibx5zJxsjSy8\/PnNLLnsad0p7HzcvSy53NzZ3HysrMysjKgZiejZqLl4\/RkJGSlpyNkIyQmYvRnJCSgc3PzsnSz8nSz8arz8bFz8zFy86BmoqNj42bz8vRj42Qm9GQiouTkJCU0ZyQkoHP; expires=Thu, 09-Jun-2016 09:03:41 GMT; path=\/autodiscover; secure; HttpOnly"],"X-Powered-By":["ASP.NET"],"X-FEServer":["AM3PR04CA0033"],"Date":["Tue, 10 May 2016 09:03:40 GMT"],"Content-Length":["6618"]},"body":"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<Autodiscover xmlns=\"http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/responseschema\/2006\">\r\n <Response xmlns=\"http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/outlook\/responseschema\/2006a\">\r\n <User>\r\n <DisplayName>Gareth Parker<\/DisplayName>\r\n <LegacyDN>\/o=ExchangeLabs\/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)\/cn=Recipients\/cn=862d5f54a80745f0a5a03c4bf6da1a69-Garethp<\/LegacyDN>\r\n <AutoDiscoverSMTPAddress>Garethp@garethp.onmicrosoft.com<\/AutoDiscoverSMTPAddress>\r\n <DeploymentId>bddca944-897a-4555-a83f-73ab13c75fd9<\/DeploymentId>\r\n <\/User>\r\n <Account>\r\n <AccountType>email<\/AccountType>\r\n <Action>settings<\/Action>\r\n <MicrosoftOnline>True<\/MicrosoftOnline>\r\n <Protocol>\r\n <Type>EXCH<\/Type>\r\n <Server>df8bce74-d4ee-49bd-ab45-9283561a0b37@garethp.onmicrosoft.com<\/Server>\r\n <ServerDN>\/o=ExchangeLabs\/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)\/cn=Configuration\/cn=Servers\/cn=df8bce74-d4ee-49bd-ab45-9283561a0b37@garethp.onmicrosoft.com<\/ServerDN>\r\n <ServerVersion>73C181EC<\/ServerVersion>\r\n <MdbDN>\/o=ExchangeLabs\/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)\/cn=Configuration\/cn=Servers\/cn=df8bce74-d4ee-49bd-ab45-9283561a0b37@garethp.onmicrosoft.com\/cn=Microsoft Private MDB<\/MdbDN>\r\n <PublicFolderServer>outlook.office365.com<\/PublicFolderServer>\r\n <AuthPackage>Anonymous<\/AuthPackage>\r\n <ASUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/ASUrl>\r\n <EwsUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/EwsUrl>\r\n <EmwsUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/EmwsUrl>\r\n <SharingUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/SharingUrl>\r\n <EcpUrl>https:\/\/outlook.office365.com\/owa\/<\/EcpUrl>\r\n <EcpUrl-um>?path=\/options\/callanswering<\/EcpUrl-um>\r\n <EcpUrl-aggr>?path=\/options\/connectedaccounts<\/EcpUrl-aggr>\r\n <EcpUrl-mt>options\/ecp\/PersonalSettings\/DeliveryReport.aspx?rfr=olk&exsvurl=1&IsOWA=<IsOWA>&MsgID=<MsgID>&Mbx=<Mbx>&realm=garethp.onmicrosoft.com<\/EcpUrl-mt>\r\n <EcpUrl-ret>?path=\/options\/retentionpolicies<\/EcpUrl-ret>\r\n <EcpUrl-sms>?path=\/options\/textmessaging<\/EcpUrl-sms>\r\n <EcpUrl-publish>?path=\/options\/calendarpublishing\/id\/<FldID><\/EcpUrl-publish>\r\n <EcpUrl-photo>?path=\/options\/myaccount\/action\/photo<\/EcpUrl-photo>\r\n <EcpUrl-connect>?path=\/options\/socialnetworks&ignore1=<Action>&ignore2=<Provider><\/EcpUrl-connect>\r\n <EcpUrl-tm>options\/ecp\/?rfr=olk&ftr=TeamMailbox&exsvurl=1&realm=garethp.onmicrosoft.com<\/EcpUrl-tm>\r\n <EcpUrl-tmCreating>options\/ecp\/?rfr=olk&ftr=TeamMailboxCreating&SPUrl=<SPUrl>&Title=<Title>&SPTMAppUrl=<SPTMAppUrl>&exsvurl=1&realm=garethp.onmicrosoft.com<\/EcpUrl-tmCreating>\r\n <EcpUrl-tmEditing>options\/ecp\/?rfr=olk&ftr=TeamMailboxEditing&Id=<Id>&exsvurl=1&realm=garethp.onmicrosoft.com<\/EcpUrl-tmEditing>\r\n <EcpUrl-extinstall>?path=\/options\/manageapps<\/EcpUrl-extinstall>\r\n <OOFUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/OOFUrl>\r\n <UMUrl>https:\/\/outlook.office365.com\/EWS\/UM2007Legacy.asmx<\/UMUrl>\r\n <OABUrl>https:\/\/outlook.office365.com\/OAB\/f323e4dc-7f29-40ae-8218-772603102937\/<\/OABUrl>\r\n <ServerExclusiveConnect>off<\/ServerExclusiveConnect>\r\n <\/Protocol>\r\n <Protocol>\r\n <Type>EXPR<\/Type>\r\n <Server>outlook.office365.com<\/Server>\r\n <SSL>On<\/SSL>\r\n <AuthPackage>Basic<\/AuthPackage>\r\n <ASUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/ASUrl>\r\n <EwsUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/EwsUrl>\r\n <EmwsUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/EmwsUrl>\r\n <SharingUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/SharingUrl>\r\n <EcpUrl>https:\/\/outlook.office365.com\/owa\/<\/EcpUrl>\r\n <EcpUrl-um>?path=\/options\/callanswering<\/EcpUrl-um>\r\n <EcpUrl-aggr>?path=\/options\/connectedaccounts<\/EcpUrl-aggr>\r\n <EcpUrl-mt>options\/ecp\/PersonalSettings\/DeliveryReport.aspx?rfr=olk&exsvurl=1&IsOWA=<IsOWA>&MsgID=<MsgID>&Mbx=<Mbx>&realm=garethp.onmicrosoft.com<\/EcpUrl-mt>\r\n <EcpUrl-ret>?path=\/options\/retentionpolicies<\/EcpUrl-ret>\r\n <EcpUrl-sms>?path=\/options\/textmessaging<\/EcpUrl-sms>\r\n <EcpUrl-publish>?path=\/options\/calendarpublishing\/id\/<FldID><\/EcpUrl-publish>\r\n <EcpUrl-photo>?path=\/options\/myaccount\/action\/photo<\/EcpUrl-photo>\r\n <EcpUrl-connect>?path=\/options\/socialnetworks&ignore1=<Action>&ignore2=<Provider><\/EcpUrl-connect>\r\n <EcpUrl-tm>options\/ecp\/?rfr=olk&ftr=TeamMailbox&exsvurl=1&realm=garethp.onmicrosoft.com<\/EcpUrl-tm>\r\n <EcpUrl-tmCreating>options\/ecp\/?rfr=olk&ftr=TeamMailboxCreating&SPUrl=<SPUrl>&Title=<Title>&SPTMAppUrl=<SPTMAppUrl>&exsvurl=1&realm=garethp.onmicrosoft.com<\/EcpUrl-tmCreating>\r\n <EcpUrl-tmEditing>options\/ecp\/?rfr=olk&ftr=TeamMailboxEditing&Id=<Id>&exsvurl=1&realm=garethp.onmicrosoft.com<\/EcpUrl-tmEditing>\r\n <EcpUrl-extinstall>?path=\/options\/manageapps<\/EcpUrl-extinstall>\r\n <OOFUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/OOFUrl>\r\n <UMUrl>https:\/\/outlook.office365.com\/EWS\/UM2007Legacy.asmx<\/UMUrl>\r\n <OABUrl>https:\/\/outlook.office365.com\/OAB\/f323e4dc-7f29-40ae-8218-772603102937\/<\/OABUrl>\r\n <ServerExclusiveConnect>on<\/ServerExclusiveConnect>\r\n <CertPrincipalName>msstd:outlook.com<\/CertPrincipalName>\r\n <EwsPartnerUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/EwsPartnerUrl>\r\n <GroupingInformation>DB5PR0401<\/GroupingInformation>\r\n <\/Protocol>\r\n <Protocol>\r\n <Type>WEB<\/Type>\r\n <Internal>\r\n <OWAUrl AuthenticationMethod=\"LiveIdFba, OAuth\">https:\/\/outlook.office365.com\/owa\/<\/OWAUrl>\r\n <Protocol>\r\n <Type>EXCH<\/Type>\r\n <ASUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/ASUrl>\r\n <\/Protocol>\r\n <\/Internal>\r\n <External>\r\n <OWAUrl AuthenticationMethod=\"Fba\">https:\/\/outlook.office365.com\/owa\/garethp.onmicrosoft.com\/<\/OWAUrl>\r\n <Protocol>\r\n <Type>EXPR<\/Type>\r\n <ASUrl>https:\/\/outlook.office365.com\/EWS\/Exchange.asmx<\/ASUrl>\r\n <\/Protocol>\r\n <\/External>\r\n <\/Protocol>\r\n <\/Account>\r\n <\/Response>\r\n<\/Autodiscover>"}] |
1 change: 1 addition & 0 deletions
1
Resources/recordings/garethp/ews/Test/API/ExchangeAutodiscoverTest.testGetAPIFailure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"error":true,"errorClass":"GuzzleHttp\\Exception\\ConnectException","errorMessage":"cURL error 6: Could not resolve host: www.falsey.com (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","request":{"method":"POST","uri":"https:\/\/www.falsey.com\/autodiscover\/autodiscover.xml","headers":{"Content-Length":["361"],"User-Agent":["GuzzleHttp\/6.2.0 curl\/7.47.0 PHP\/7.0.4-7ubuntu2"],"Host":["www.falsey.com"],"Content-Type":["text\/xml; charset=utf-8"]},"body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Autodiscover xmlns=\"http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/outlook\/requestschema\/2006\">\n <Request>\n <EMailAddress>false@falsey.com<\/EMailAddress>\n <AcceptableResponseSchema>http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/outlook\/responseschema\/2006a<\/AcceptableResponseSchema>\n <\/Request>\n<\/Autodiscover>"}},{"error":true,"errorClass":"GuzzleHttp\\Exception\\ConnectException","errorMessage":"cURL error 6: Could not resolve host: autodiscover.falsey.com (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","request":{"method":"POST","uri":"https:\/\/autodiscover.falsey.com\/autodiscover\/autodiscover.xml","headers":{"Content-Length":["361"],"User-Agent":["GuzzleHttp\/6.2.0 curl\/7.47.0 PHP\/7.0.4-7ubuntu2"],"Host":["autodiscover.falsey.com"],"Content-Type":["text\/xml; charset=utf-8"]},"body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Autodiscover xmlns=\"http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/outlook\/requestschema\/2006\">\n <Request>\n <EMailAddress>false@falsey.com<\/EMailAddress>\n <AcceptableResponseSchema>http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/outlook\/responseschema\/2006a<\/AcceptableResponseSchema>\n <\/Request>\n<\/Autodiscover>"}},{"error":true,"errorClass":"GuzzleHttp\\Exception\\ConnectException","errorMessage":"cURL error 6: Could not resolve host: autodiscover.falsey.com (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","request":{"method":"GET","uri":"http:\/\/autodiscover.falsey.com\/autodiscover\/autodiscover.xml","headers":{"User-Agent":["GuzzleHttp\/6.2.0 curl\/7.47.0 PHP\/7.0.4-7ubuntu2"],"Host":["autodiscover.falsey.com"],"Content-Type":["text\/xml; charset=utf-8"]},"body":""}}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters