Skip to content

Commit

Permalink
Fixing a bug in FindFolderParentType::offsetGet, adding deleteFolders…
Browse files Browse the repository at this point in the history
… and deprecating deleteFolder, fixed getNextPage(), added more unit tests
  • Loading branch information
Garethp committed Jun 29, 2016
1 parent 62e8ac8 commit 4b82f42
Show file tree
Hide file tree
Showing 36 changed files with 101 additions and 44 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
## 0.9.0 - TBD
* Moved HttpPlayback in to it's own library
* Removed deprecated functions
* Deprecated `API::deleteFolder` in favor of `API::deleteFolders()`
* Moved the following classes. Old empty classes were put in place until `0.10`
* `garethp\ews\Mail\MailAPI` -> `garethp\ews\MailAPI`
* `garethp\ews\Calendar\CalendarAPI` -> `garethp\ews\CalendarAPI`
* `garethp\ews\Contacts\ContactsAPI` -> `garethp\ews\ContactsAPI`
* Introduced an experimental middleware pattern in to ExchangeWebServices to handle request transformation
* listItemChanges now returns up to 100 items, instead of 10
* Added `API::getNextPage($request)`. However, this won't work as expected for Calendar items.
* Fixed a bug in `FindFolderParentType::offsetGet()`

## 0.8.5 - 2016-06-03
* Added docblocks to the ExchangeWebServices class
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"error":false,"statusCode":200,"headers":{"Cache-Control":["private"],"Transfer-Encoding":["chunked"],"Content-Type":["text\/xml; charset=utf-8"],"Server":["Microsoft-IIS\/8.0"],"request-id":["2ef2d15d-ca65-4fc9-ab5b-f30a1a8982a7"],"X-CalculatedBETarget":["DB5PR0401MB1877.eurprd04.prod.outlook.com"],"X-BackEndHttpStatus":["200"],"Set-Cookie":["exchangecookie=e53b5eb39e5b433987b040b17fbb055c; expires=Tue, 27-Jun-2017 17:38:04 GMT; path=\/; HttpOnly"],"x-EwsHandler":["CreateItem"],"X-AspNet-Version":["4.0.30319"],"X-DiagInfo":["DB5PR0401MB1877"],"X-BEServer":["DB5PR0401MB1877"],"X-Powered-By":["ASP.NET"],"X-FEServer":["VI1PR02CA0023"],"Date":["Mon, 27 Jun 2016 17:38:04 GMT"]},"body":"<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"><s:Header><h:ServerVersionInfo MajorVersion=\"15\" MinorVersion=\"1\" MajorBuildNumber=\"523\" MinorBuildNumber=\"24\" Version=\"V2016_04_13\" xmlns:h=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\/><\/s:Header><s:Body><m:CreateItemResponse xmlns:m=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/messages\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:t=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\"><m:ResponseMessages><m:CreateItemResponseMessage ResponseClass=\"Success\"><m:ResponseCode>NoError<\/m:ResponseCode><m:Items><t:CalendarItem><t:ItemId Id=\"AAMkAGRmOGJjZTc0LWQ0ZWUtNDliZC1hYjQ1LTkyODM1NjFhMGIzNwBGAAAAAAAdsEfFUCwSRaf4+E1agVdfBwA4JiVRwOF7SbQybW1zR3q0AAAAAAENAAA4JiVRwOF7SbQybW1zR3q0AABNQUqTAAA=\" ChangeKey=\"DwAAABYAAAA4JiVRwOF7SbQybW1zR3q0AABNSlQk\"\/><\/t:CalendarItem><\/m:Items><\/m:CreateItemResponseMessage><\/m:ResponseMessages><\/m:CreateItemResponse><\/s:Body><\/s:Envelope>"},{"error":false,"statusCode":200,"headers":{"Cache-Control":["private"],"Transfer-Encoding":["chunked"],"Content-Type":["text\/xml; charset=utf-8"],"Server":["Microsoft-IIS\/8.0"],"request-id":["51478db5-83e9-492d-b074-c58e044f6174"],"X-CalculatedBETarget":["DB5PR0401MB1877.eurprd04.prod.outlook.com"],"X-BackEndHttpStatus":["200"],"Set-Cookie":["exchangecookie=5bf337934a9c4c8b991d3b2b41ac4be4; expires=Tue, 27-Jun-2017 17:38:04 GMT; path=\/; HttpOnly"],"x-EwsHandler":["DeleteItem"],"X-AspNet-Version":["4.0.30319"],"X-DiagInfo":["DB5PR0401MB1877"],"X-BEServer":["DB5PR0401MB1877"],"X-Powered-By":["ASP.NET"],"X-FEServer":["VI1PR02CA0023"],"Date":["Mon, 27 Jun 2016 17:38:04 GMT"]},"body":"<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"><s:Header><h:ServerVersionInfo MajorVersion=\"15\" MinorVersion=\"1\" MajorBuildNumber=\"523\" MinorBuildNumber=\"24\" Version=\"V2016_04_13\" xmlns:h=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\/><\/s:Header><s:Body><m:DeleteItemResponse xmlns:m=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/messages\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:t=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\"><m:ResponseMessages><m:DeleteItemResponseMessage ResponseClass=\"Success\"><m:ResponseCode>NoError<\/m:ResponseCode><\/m:DeleteItemResponseMessage><\/m:ResponseMessages><\/m:DeleteItemResponse><\/s:Body><\/s:Envelope>"}]
[{"error":false,"statusCode":200,"headers":{"Cache-Control":["private"],"Transfer-Encoding":["chunked"],"Content-Type":["text\/xml; charset=utf-8"],"Server":["Microsoft-IIS\/8.0"],"request-id":["d426cab6-cf1e-40ef-b1cc-4893c7e53de3"],"X-CalculatedBETarget":["DB5PR0401MB1877.eurprd04.prod.outlook.com"],"X-BackEndHttpStatus":["200"],"Set-Cookie":["exchangecookie=61698629a05548adb3736bd3508770e8; expires=Thu, 29-Jun-2017 10:03:09 GMT; path=\/; HttpOnly"],"x-EwsHandler":["CreateItem"],"X-AspNet-Version":["4.0.30319"],"X-DiagInfo":["DB5PR0401MB1877"],"X-BEServer":["DB5PR0401MB1877"],"X-Powered-By":["ASP.NET"],"X-FEServer":["AM4PR0401CA0008"],"Date":["Wed, 29 Jun 2016 10:03:08 GMT"]},"body":"<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"><s:Header><h:ServerVersionInfo MajorVersion=\"15\" MinorVersion=\"1\" MajorBuildNumber=\"523\" MinorBuildNumber=\"24\" Version=\"V2016_04_13\" xmlns:h=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\/><\/s:Header><s:Body><m:CreateItemResponse xmlns:m=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/messages\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:t=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\"><m:ResponseMessages><m:CreateItemResponseMessage ResponseClass=\"Success\"><m:ResponseCode>NoError<\/m:ResponseCode><m:Items><t:CalendarItem><t:ItemId Id=\"AAMkAGRmOGJjZTc0LWQ0ZWUtNDliZC1hYjQ1LTkyODM1NjFhMGIzNwBGAAAAAAAdsEfFUCwSRaf4+E1agVdfBwA4JiVRwOF7SbQybW1zR3q0AAAAAAENAAA4JiVRwOF7SbQybW1zR3q0AABNQUqrAAA=\" ChangeKey=\"DwAAABYAAAA4JiVRwOF7SbQybW1zR3q0AABNSlRU\"\/><\/t:CalendarItem><\/m:Items><\/m:CreateItemResponseMessage><\/m:ResponseMessages><\/m:CreateItemResponse><\/s:Body><\/s:Envelope>"},{"error":false,"statusCode":200,"headers":{"Cache-Control":["private"],"Transfer-Encoding":["chunked"],"Content-Type":["text\/xml; charset=utf-8"],"Server":["Microsoft-IIS\/8.0"],"request-id":["334c23f9-3aca-443d-91c8-b7fbd8b4195d"],"X-CalculatedBETarget":["DB5PR0401MB1877.eurprd04.prod.outlook.com"],"X-BackEndHttpStatus":["200"],"Set-Cookie":["exchangecookie=6a0898ee94b3451ba990d504178034ac; expires=Thu, 29-Jun-2017 10:03:09 GMT; path=\/; HttpOnly"],"x-EwsHandler":["DeleteItem"],"X-AspNet-Version":["4.0.30319"],"X-DiagInfo":["DB5PR0401MB1877"],"X-BEServer":["DB5PR0401MB1877"],"X-Powered-By":["ASP.NET"],"X-FEServer":["AM4PR0401CA0008"],"Date":["Wed, 29 Jun 2016 10:03:08 GMT"]},"body":"<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"><s:Header><h:ServerVersionInfo MajorVersion=\"15\" MinorVersion=\"1\" MajorBuildNumber=\"523\" MinorBuildNumber=\"24\" Version=\"V2016_04_13\" xmlns:h=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\/><\/s:Header><s:Body><m:DeleteItemResponse xmlns:m=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/messages\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:t=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\"><m:ResponseMessages><m:DeleteItemResponseMessage ResponseClass=\"Success\"><m:ResponseCode>NoError<\/m:ResponseCode><\/m:DeleteItemResponseMessage><\/m:ResponseMessages><\/m:DeleteItemResponse><\/s:Body><\/s:Envelope>"}]

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"error":false,"statusCode":200,"headers":{"Cache-Control":["private"],"Transfer-Encoding":["chunked"],"Content-Type":["text\/xml; charset=utf-8"],"Server":["Microsoft-IIS\/8.0"],"request-id":["c6e93540-c9a0-4d79-b525-d557cb9e53d1"],"X-CalculatedBETarget":["DB5PR0401MB1877.eurprd04.prod.outlook.com"],"X-BackEndHttpStatus":["200"],"Set-Cookie":["exchangecookie=0b3632b694dc452cb4333f3ae9da9e71; expires=Tue, 27-Jun-2017 17:38:04 GMT; path=\/; HttpOnly"],"x-EwsHandler":["CreateItem"],"X-AspNet-Version":["4.0.30319"],"X-DiagInfo":["DB5PR0401MB1877"],"X-BEServer":["DB5PR0401MB1877"],"X-Powered-By":["ASP.NET"],"X-FEServer":["VI1PR02CA0023"],"Date":["Mon, 27 Jun 2016 17:38:04 GMT"]},"body":"<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"><s:Header><h:ServerVersionInfo MajorVersion=\"15\" MinorVersion=\"1\" MajorBuildNumber=\"523\" MinorBuildNumber=\"24\" Version=\"V2016_04_13\" xmlns:h=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\/><\/s:Header><s:Body><m:CreateItemResponse xmlns:m=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/messages\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:t=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\"><m:ResponseMessages><m:CreateItemResponseMessage ResponseClass=\"Success\"><m:ResponseCode>NoError<\/m:ResponseCode><m:Items><t:CalendarItem><t:ItemId Id=\"AAMkAGRmOGJjZTc0LWQ0ZWUtNDliZC1hYjQ1LTkyODM1NjFhMGIzNwBGAAAAAAAdsEfFUCwSRaf4+E1agVdfBwA4JiVRwOF7SbQybW1zR3q0AAAAAAENAAA4JiVRwOF7SbQybW1zR3q0AABNQUqUAAA=\" ChangeKey=\"DwAAABYAAAA4JiVRwOF7SbQybW1zR3q0AABNSlQm\"\/><\/t:CalendarItem><\/m:Items><\/m:CreateItemResponseMessage><\/m:ResponseMessages><\/m:CreateItemResponse><\/s:Body><\/s:Envelope>"},{"error":false,"statusCode":200,"headers":{"Cache-Control":["private"],"Transfer-Encoding":["chunked"],"Content-Type":["text\/xml; charset=utf-8"],"Server":["Microsoft-IIS\/8.0"],"request-id":["6a2fb7f4-5709-4b7c-a6b5-0add216c2c85"],"X-CalculatedBETarget":["DB5PR0401MB1877.eurprd04.prod.outlook.com"],"X-BackEndHttpStatus":["200"],"Set-Cookie":["exchangecookie=c53bb418ad0447dc85612d6f617a6801; expires=Tue, 27-Jun-2017 17:38:05 GMT; path=\/; HttpOnly"],"x-EwsHandler":["DeleteItem"],"X-AspNet-Version":["4.0.30319"],"X-DiagInfo":["DB5PR0401MB1877"],"X-BEServer":["DB5PR0401MB1877"],"X-Powered-By":["ASP.NET"],"X-FEServer":["VI1PR02CA0023"],"Date":["Mon, 27 Jun 2016 17:38:04 GMT"]},"body":"<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"><s:Header><h:ServerVersionInfo MajorVersion=\"15\" MinorVersion=\"1\" MajorBuildNumber=\"523\" MinorBuildNumber=\"24\" Version=\"V2016_04_13\" xmlns:h=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\/><\/s:Header><s:Body><m:DeleteItemResponse xmlns:m=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/messages\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:t=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\"><m:ResponseMessages><m:DeleteItemResponseMessage ResponseClass=\"Success\"><m:ResponseCode>NoError<\/m:ResponseCode><\/m:DeleteItemResponseMessage><\/m:ResponseMessages><\/m:DeleteItemResponse><\/s:Body><\/s:Envelope>"}]
[{"error":false,"statusCode":200,"headers":{"Cache-Control":["private"],"Transfer-Encoding":["chunked"],"Content-Type":["text\/xml; charset=utf-8"],"Server":["Microsoft-IIS\/8.0"],"request-id":["078c7042-d0ca-4cf5-a214-29f3633191b0"],"X-CalculatedBETarget":["DB5PR0401MB1877.eurprd04.prod.outlook.com"],"X-BackEndHttpStatus":["200"],"Set-Cookie":["exchangecookie=1977ed9137d74da6be67810768d57911; expires=Thu, 29-Jun-2017 10:03:09 GMT; path=\/; HttpOnly"],"x-EwsHandler":["CreateItem"],"X-AspNet-Version":["4.0.30319"],"X-DiagInfo":["DB5PR0401MB1877"],"X-BEServer":["DB5PR0401MB1877"],"X-Powered-By":["ASP.NET"],"X-FEServer":["AM4PR0401CA0042"],"Date":["Wed, 29 Jun 2016 10:03:08 GMT"]},"body":"<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"><s:Header><h:ServerVersionInfo MajorVersion=\"15\" MinorVersion=\"1\" MajorBuildNumber=\"523\" MinorBuildNumber=\"24\" Version=\"V2016_04_13\" xmlns:h=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\/><\/s:Header><s:Body><m:CreateItemResponse xmlns:m=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/messages\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:t=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\"><m:ResponseMessages><m:CreateItemResponseMessage ResponseClass=\"Success\"><m:ResponseCode>NoError<\/m:ResponseCode><m:Items><t:CalendarItem><t:ItemId Id=\"AAMkAGRmOGJjZTc0LWQ0ZWUtNDliZC1hYjQ1LTkyODM1NjFhMGIzNwBGAAAAAAAdsEfFUCwSRaf4+E1agVdfBwA4JiVRwOF7SbQybW1zR3q0AAAAAAENAAA4JiVRwOF7SbQybW1zR3q0AABNQUqsAAA=\" ChangeKey=\"DwAAABYAAAA4JiVRwOF7SbQybW1zR3q0AABNSlRW\"\/><\/t:CalendarItem><\/m:Items><\/m:CreateItemResponseMessage><\/m:ResponseMessages><\/m:CreateItemResponse><\/s:Body><\/s:Envelope>"},{"error":false,"statusCode":200,"headers":{"Cache-Control":["private"],"Transfer-Encoding":["chunked"],"Content-Type":["text\/xml; charset=utf-8"],"Server":["Microsoft-IIS\/8.0"],"request-id":["d453ac6c-ecde-48f2-a244-5ea68d2cdee3"],"X-CalculatedBETarget":["DB5PR0401MB1877.eurprd04.prod.outlook.com"],"X-BackEndHttpStatus":["200"],"Set-Cookie":["exchangecookie=7e90b267b3a9446b80e68c02586e9223; expires=Thu, 29-Jun-2017 10:03:09 GMT; path=\/; HttpOnly"],"x-EwsHandler":["DeleteItem"],"X-AspNet-Version":["4.0.30319"],"X-DiagInfo":["DB5PR0401MB1877"],"X-BEServer":["DB5PR0401MB1877"],"X-Powered-By":["ASP.NET"],"X-FEServer":["AM4PR0401CA0042"],"Date":["Wed, 29 Jun 2016 10:03:08 GMT"]},"body":"<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"><s:Header><h:ServerVersionInfo MajorVersion=\"15\" MinorVersion=\"1\" MajorBuildNumber=\"523\" MinorBuildNumber=\"24\" Version=\"V2016_04_13\" xmlns:h=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\/><\/s:Header><s:Body><m:DeleteItemResponse xmlns:m=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/messages\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:t=\"http:\/\/schemas.microsoft.com\/exchange\/services\/2006\/types\"><m:ResponseMessages><m:DeleteItemResponseMessage ResponseClass=\"Success\"><m:ResponseCode>NoError<\/m:ResponseCode><\/m:DeleteItemResponseMessage><\/m:ResponseMessages><\/m:DeleteItemResponse><\/s:Body><\/s:Envelope>"}]
Loading

0 comments on commit 4b82f42

Please sign in to comment.