Example #1
0
 public function testWithCallbackToken()
 {
     //Create our expected item, get our class to build our item, then compare
     $expected = ExchangeWebServices::fromCallbackToken('test.com', 'token', ['version' => ExchangeWebServices::VERSION_2010]);
     $client = API::withCallbackToken('test.com', 'token');
     $actual = $client->getClient();
     $this->assertEquals($expected, $actual);
 }
Example #2
0
 public static function withCallbackToken($server, $token, $options = [])
 {
     return new static(ExchangeWebServices::fromCallbackToken($server, $token, array_replace_recursive(self::$defaultClientOptions, $options)));
 }