Skip to content

Commit

Permalink
Merge pull request #163 from plivo/VT-1641-app-cascade-delete
Browse files Browse the repository at this point in the history
adds cascade option for delete app API
  • Loading branch information
nixonsam authored Mar 31, 2020
2 parents 5d01921 + 16d2eac commit 864719e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [v4.7.0](https://github.com/plivo/plivo-php/releases/tag/v4.7.0) - 2020-03-31
- Add application cascade delete support.

## [v4.6.0](https://github.com/plivo/plivo-php/releases/tag/v4.6.0) - 2020-03-30
- Add Tollfree support for Powerpack

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The Plivo PHP SDK makes it simpler to integrate communications into your PHP app

- To install a **specific release**, run the following command in the project directory:

$ composer require plivo/plivo-php:4.6.0
$ composer require plivo/plivo-php:4.7.0

- To test the features in the **beta release**, run the following command in the project directory:

Expand Down
8 changes: 6 additions & 2 deletions src/Plivo/Resources/Application/ApplicationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,17 @@ public function update($appId, array $optionalArgs = [])
/**
* Delete an application
* @param string $appId
* @param array $optionalArgs
* + boolean cascade - Delete associated endpoints
* + string new_endpoint_application - Link associated endpoints with new application
*
* @return ResponseDelete
*/
public function delete($appId)
public function delete($appId, array $optionalArgs = [])
{
$response = $this->client->delete(
$this->uri . $appId . '/',
[]
$optionalArgs
);

return new ResponseDelete($response->getStatusCode());
Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Version
/**
* @const int PHP helper library minor version number
*/
const MINOR = 6;
const MINOR = 7;
/**
* @const int PHP helper library patch number
*/
Expand Down

0 comments on commit 864719e

Please sign in to comment.