Ejemplo n.º 1
0
 /**
  * @param $apiClass
  *
  * @return \garethp\ews\ContactsAPI
  */
 public function getClient($apiClass = null)
 {
     /** @var API $client */
     $client = parent::getClient(API::class);
     $testFolder = $client->getFolderByDisplayName('Test', $client->getFolderId());
     $client->setFolderId($testFolder->getFolderId());
     return $client;
 }
Ejemplo n.º 2
0
 /**
  * @param $apiClass
  *
  * @return \garethp\ews\CalendarAPI
  */
 public function getClient($apiClass = null)
 {
     $client = parent::getClient();
     return $client->getCalendar('Test');
 }