forked from Bandwidth/php-bandwidth-iris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added readme template and updated composer * Added code * cleaned up spaces * Added test skeleton * Added xml responses * Added tests with no asserts * Added assert tests and fixed responses * Added most models * fixed some tests * Reverted to array usage * Added readme code * removed old model files
- Loading branch information
1 parent
ac7170b
commit ffa1a02
Showing
4 changed files
with
343 additions
and
193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ PHP Client library for Bandwidth's Phone Number Dashboard (AKA: Dashboard, Iris) | |
| 2.1.0 | Added `importTnOrders`, `removeImportedTnOrders`, `inserviceNumbers`, and `importTnChecker` endpoints | | ||
| 2.2.0 | Added `csrs` endpoints | | ||
| 2.3.0 | Added `loas` endpoints for ImportTnOrders | | ||
| 2.4.0 | Added Emergency Calling Notification, Emergeny Notification Group, Emergency Notification Endpoint, and Alternate End User Identity methods | | ||
|
||
## Supported PHP Versions | ||
|
||
|
@@ -827,3 +828,127 @@ $note = new \Iris\CsrNote(array( | |
|
||
$account->updateCsrOrderNote("order_id", "note_id", $note); | ||
``` | ||
|
||
## Emergency Notification Recipients | ||
|
||
### Create Emergency Notification Recipient | ||
|
||
```php | ||
$data = array( | ||
"Description" => "Email to Bldg. 3 Front Desk", | ||
"Type" => "EMAIL", | ||
"EmailAddress" => "[email protected]" | ||
); | ||
$response = $account->createEmergencyNotificationRecipient($data); | ||
``` | ||
|
||
### Get Emergency Notification Recipients | ||
|
||
```php | ||
$response = $account->getEmergencyNotificationRecipients(); | ||
``` | ||
|
||
### Get Emergency Notification Recipient | ||
|
||
```php | ||
$response = $account->getEmergencyNotificationRecipient("id"); | ||
``` | ||
|
||
### Replace Emergency Notification Recipient | ||
|
||
```php | ||
$data = array( | ||
"Description" => "Email to Bldg. 3 Front Desk", | ||
"Type" => "EMAIL", | ||
"EmailAddress" => "[email protected]" | ||
); | ||
$response = $account->replaceEmergencyNotificationRecipient("id", $data); | ||
``` | ||
|
||
### Delete Emergency Notification Recipient | ||
|
||
```php | ||
$account->deleteEmergencyNotificationRecipient("id"); | ||
``` | ||
|
||
## Emergeny Notification Group | ||
|
||
### Create Emergency Notification Group Order | ||
|
||
```php | ||
$data = array( | ||
"CustomerOrderId" => "value", | ||
"AddedEmergenyNotificationGroup" => array( | ||
"EmergencyNotificationRecipient" => array( | ||
"Identifier" => "123" | ||
) | ||
) | ||
); | ||
$response = $account->createEmergencyNotificationGroupOrder($data); | ||
``` | ||
|
||
### Get Emergency Notification Group Orders | ||
|
||
```php | ||
$response = $account->getEmergencyNotificationGroupOrders(); | ||
``` | ||
|
||
### Get Emergency Notification Group Order | ||
|
||
```php | ||
$response = $account->getEmergencyNotificationGroupOrder("id"); | ||
``` | ||
|
||
### Get Emergency Notification Groups | ||
|
||
```php | ||
$response = $account->getEmergencyNotificationGroups(); | ||
``` | ||
|
||
### Get Emergency Notification Group | ||
|
||
```php | ||
$response = $account->getEmergencyNotificationGroup("id"); | ||
``` | ||
|
||
## Emergency Notification Endpoint | ||
|
||
### Create Emergency Notification Endpoint Order | ||
|
||
```php | ||
$data = array( | ||
"CustomerOrderId" => "123", | ||
"EmergencyNotificationEndpointAssociations" => array( | ||
"EmergenyNotificationGroup" => array( | ||
"Identifier" => "456" | ||
) | ||
) | ||
); | ||
$response = $account->createEmergencyNotificationEndpointOrder($data); | ||
``` | ||
|
||
### Get Emergency Notification Endpoint Orders | ||
|
||
```php | ||
$response = $account->getEmergencyNotificationEndpointOrders(); | ||
``` | ||
|
||
### Get Emergency Notification Endpoint Order | ||
|
||
```php | ||
$response = $account->getEmergencyNotificationEndpointOrder("id"); | ||
``` | ||
|
||
## Alternate End User Identiy | ||
|
||
### Get Alternate End User Information | ||
|
||
```php | ||
$response = $account->getAlternateEndUserInformation(); | ||
``` | ||
|
||
### Get Alternate Caller Information | ||
|
||
```php | ||
$response = $account->getAlternateCallerInformation("id"); | ||
``` |
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
Oops, something went wrong.