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.
Adding examples and updating Changelog for release date
- Loading branch information
Showing
5 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
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
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
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,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 | ||
} |
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
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