Skip to content

Commit

Permalink
Merge pull request #138 from plivo/adding-public-uri
Browse files Browse the repository at this point in the history
[VT-2365] Adding public uri support
  • Loading branch information
nixonsam authored Sep 24, 2020
2 parents ad1af27 + ffa62a5 commit d8aa94b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [4.11.0](https://github.com/plivo/plivo-python/tree/v4.11.0) (2020-09-24)
- Add "public_uri" optional param support for Application API.

## [4.10.2](https://github.com/plivo/plivo-python/tree/v4.10.2) (2020-09-14)
- Fix GET callback_method for Start Recording API.

Expand Down Expand Up @@ -62,10 +65,10 @@
- Add Multi-party call triggers

## [4.2.0b1](https://github.com/plivo/plivo-python/tree/v4.2-beta1) (2018-03-11)
- Add PHLO support in Beta branch
- Add PHLO support in Beta branch

## [4.2.0a4](https://github.com/plivo/plivo-python/tree/v4.2-alpha3) (2018-10-23)
- Fix PHLO run params
- Fix PHLO run params

## [4.2.0a3](https://github.com/plivo/plivo-python/tree/v4.2-alpha3) (2018-08-08)
- Support python3.7
Expand All @@ -82,7 +85,7 @@
- Add sub-account cascade delete support.

## [4.1.4](https://github.com/plivo/plivo-python/tree/v4.1.4) (2018-10-31)
- Add live calls filtering by to, from numbers and call direction.
- Add live calls filtering by to, from numbers and call direction.

## [4.1.3](https://github.com/plivo/plivo-python/tree/v4.1.3) (2018-09-18)
- Add python3.7 support
Expand Down
15 changes: 10 additions & 5 deletions plivo/resources/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def update(self,
default_number_app=False,
default_endpoint_app=False,
subaccount=None,
log_incoming_messages=True):
log_incoming_messages=True,
public_uri=None):
params = to_param_dict(self.update, locals())
self.__dict__.update(params)
return self.client.applications.update(self.id, **params)
Expand Down Expand Up @@ -56,7 +57,8 @@ class Applications(PlivoResourceInterface):
default_number_app=[optional(of_type_exact(bool))],
default_endpoint_app=[optional(of_type_exact(bool))],
subaccount=[optional(is_subaccount())],
log_incoming_messages = [optional(of_type_exact(bool))])
log_incoming_messages=[optional(of_type_exact(bool))],
public_uri=[optional(of_type_exact(bool))])
def create(self,
answer_url,
app_name,
Expand All @@ -70,7 +72,8 @@ def create(self,
default_number_app=False,
default_endpoint_app=False,
subaccount=None,
log_incoming_messages=True):
log_incoming_messages=True,
public_uri=None):

if subaccount:
if isinstance(subaccount, Subaccount):
Expand Down Expand Up @@ -119,7 +122,8 @@ def list(self, subaccount=None, limit=20, offset=0):
default_number_app=[optional(of_type_exact(bool))],
default_endpoint_app=[optional(of_type_exact(bool))],
subaccount=[optional(is_subaccount())],
log_incoming_messages=[optional(of_type_exact(bool))])
log_incoming_messages=[optional(of_type_exact(bool))],
public_uri=[optional(of_type_exact(bool))])
def update(self,
app_id,
answer_url,
Expand All @@ -133,7 +137,8 @@ def update(self,
default_number_app=False,
default_endpoint_app=False,
subaccount=None,
log_incoming_messages=True):
log_incoming_messages=True,
public_uri=None):
if subaccount:
if isinstance(subaccount, Subaccount):
subaccount = subaccount.id
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='plivo',
version='4.10.2',
version='4.11.0',
description='A Python SDK to make voice calls & send SMS using Plivo and to generate Plivo XML',
long_description=long_description,
url='https://github.com/plivo/plivo-python',
Expand Down

0 comments on commit d8aa94b

Please sign in to comment.