Skip to content

Commit

Permalink
Adding examples and updating Changelog for release date
Browse files Browse the repository at this point in the history
  • Loading branch information
Garethp committed Jun 29, 2016
1 parent 4b82f42 commit 8ee3291
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 0.9.0 - TBD
## 0.9.0 - 2016-06-29
* Moved HttpPlayback in to it's own library
* Removed deprecated functions
* Deprecated `API::deleteFolder` in favor of `API::deleteFolders()`
Expand Down
1 change: 1 addition & 0 deletions examples/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ libraries, so that you can utilize the API beyond what has been simplified.
* [Accessing a Primary SMTP Mailbox](primarySmtpAddress.php)
* [Using the EWS Library with Office 365 and OAuth](authenticatingWithOAuth.php)
* [Converting EWS ID Formats](convertItemIdFormat.php)
* [Working with paged results](pagingRequests.php) - **NOTE** *This does not work with Calendar Items, do to how Microsoft implemented CalendarView*
29 changes: 29 additions & 0 deletions examples/basic/pagingRequests.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

use garethp\ews\ContactsAPI as API;

$api = API::withUsernameAndPassword('server', 'username', 'password', ['drillDownResponses' => false]);

$firstPage = $api->getContacts();

foreach ($firstPage as $contacts) {
//Work with the first page of contacts here
}

$secondPage = $api->getNextPage($firstPage);

foreach ($secondPage as $contacts) {
//Work with the second page of contacts here
}

$folders = $api->getChildrenFolders('test');

foreach ($folders as $folder) {
//Work with folders this way
}

$moreFolders = $api->getNextPage($folders);

foreach ($moreFolders as $folder) {
//More folders here
}
4 changes: 2 additions & 2 deletions src/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ public function moveItem(Type\ItemIdType $itemId, Type\FolderIdType $folderId, $
}

/**
* @param $items Type\ItemIdType|Type\ItemIdType[]
* @param array $options
* @param $items Type\ItemIdType|Type\ItemIdType[]
* @param array $options
* @return bool
*/
public function deleteItems($items, $options = array())
Expand Down
2 changes: 1 addition & 1 deletion src/CalendarAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function updateCalendarItem(Type\ItemIdType $itemId, $changes)

/**
* @param Type\ItemIdType $itemId
* @param array $options
* @param array $options
* @return bool
*/
public function deleteCalendarItem(Type\ItemIdType $itemId, $options = array())
Expand Down

0 comments on commit 8ee3291

Please sign in to comment.