Skip to content

Commit 74782f9

Browse files
authored
Meetings API Support (#417)
* meetings api client * meetings api test suite * Fix tests, bring in new exceptions * new exceptions * change tests, page_size is the correct pagination key * Additional changes pre GA * Product coming out of beta
1 parent 8e9f239 commit 74782f9

38 files changed

+1723
-52
lines changed

phpunit.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
<testsuite name="subaccount">
3636
<directory>test/Subaccount</directory>
3737
</testsuite>
38+
<testsuite name="meetings">
39+
<directory>test/Meetings</directory>
40+
</testsuite>
3841
</testsuites>
3942
<php>
4043
<ini name='error_reporting' value='E_ALL' />

src/Client.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
use Vonage\Conversion\ClientFactory as ConversionClientFactory;
4747
use Vonage\Entity\EntityInterface;
4848
use Vonage\Insights\ClientFactory as InsightsClientFactory;
49+
use Vonage\Meetings\ClientFactory as MeetingsClientFactory;
4950
use Vonage\Numbers\ClientFactory as NumbersClientFactory;
5051
use Vonage\Redact\ClientFactory as RedactClientFactory;
5152
use Vonage\Secrets\ClientFactory as SecretsClientFactory;
@@ -74,6 +75,7 @@
7475
* Vonage API Client, allows access to the API from PHP.
7576
*
7677
* @method Account\Client account()
78+
* @method Meetings\Client meetings()
7779
* @method Messages\Client messages()
7880
* @method Application\Client applications()
7981
* @method Conversion\Client conversion()
@@ -216,6 +218,7 @@ public function __construct(
216218
'conversion' => ConversionClientFactory::class,
217219
'insights' => InsightsClientFactory::class,
218220
'numbers' => NumbersClientFactory::class,
221+
'meetings' => MeetingsClientFactory::class,
219222
'messages' => MessagesClientFactory::class,
220223
'redact' => RedactClientFactory::class,
221224
'secrets' => SecretsClientFactory::class,

src/Client/Exception/Conflict.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Vonage\Client\Exception;
6+
7+
class Conflict extends \Exception
8+
{
9+
}

src/Client/Exception/Credentials.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?php
22

3-
/**
4-
* Vonage Client Library for PHP
5-
*
6-
* @copyright Copyright (c) 2016-2022 Vonage, Inc. (http://vonage.com)
7-
* @license https://github.com/Vonage/vonage-php-sdk-core/blob/master/LICENSE.txt Apache License 2.0
8-
*/
9-
103
declare(strict_types=1);
114

125
namespace Vonage\Client\Exception;

src/Client/Exception/Exception.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?php
22

3-
/**
4-
* Vonage Client Library for PHP
5-
*
6-
* @copyright Copyright (c) 2016-2022 Vonage, Inc. (http://vonage.com)
7-
* @license https://github.com/Vonage/vonage-php-sdk-core/blob/master/LICENSE.txt Apache License 2.0
8-
*/
9-
103
declare(strict_types=1);
114

125
namespace Vonage\Client\Exception;

src/Client/Exception/NotFound.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Vonage\Client\Exception;
6+
7+
class NotFound extends \Exception
8+
{
9+
}

src/Client/Exception/Request.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?php
22

3-
/**
4-
* Vonage Client Library for PHP
5-
*
6-
* @copyright Copyright (c) 2016-2022 Vonage, Inc. (http://vonage.com)
7-
* @license https://github.com/Vonage/vonage-php-sdk-core/blob/master/LICENSE.txt Apache License 2.0
8-
*/
9-
103
declare(strict_types=1);
114

125
namespace Vonage\Client\Exception;

src/Client/Exception/Server.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?php
22

3-
/**
4-
* Vonage Client Library for PHP
5-
*
6-
* @copyright Copyright (c) 2016-2022 Vonage, Inc. (http://vonage.com)
7-
* @license https://github.com/Vonage/vonage-php-sdk-core/blob/master/LICENSE.txt Apache License 2.0
8-
*/
9-
103
declare(strict_types=1);
114

125
namespace Vonage\Client\Exception;

src/Client/Exception/ThrottleException.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?php
22

3-
/**
4-
* Vonage Client Library for PHP
5-
*
6-
* @copyright Copyright (c) 2016-2022 Vonage, Inc. (http://vonage.com)
7-
* @license https://github.com/Vonage/vonage-php-sdk-core/blob/master/LICENSE.txt Apache License 2.0
8-
*/
9-
103
declare(strict_types=1);
114

125
namespace Vonage\Client\Exception;

src/Client/Exception/Transport.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?php
22

3-
/**
4-
* Vonage Client Library for PHP
5-
*
6-
* @copyright Copyright (c) 2016-2022 Vonage, Inc. (http://vonage.com)
7-
* @license https://github.com/Vonage/vonage-php-sdk-core/blob/master/LICENSE.txt Apache License 2.0
8-
*/
9-
103
declare(strict_types=1);
114

125
namespace Vonage\Client\Exception;

0 commit comments

Comments
 (0)