Skip to content

Commit 9d003ff

Browse files
committed
Deploy
1 parent 73e86f2 commit 9d003ff

File tree

22 files changed

+142
-12
lines changed

22 files changed

+142
-12
lines changed

bandwidth/controllers/base_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BaseController(object):
2828

2929
def global_headers(self):
3030
return {
31-
'user-agent': 'python-sdk-refs/tags/python6.12.1'
31+
'user-agent': 'python-sdk-refs/tags/python6.13.0'
3232
}
3333

3434
def __init__(self, config, call_back=None):

bandwidth/messaging/controllers/base_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BaseController(object):
2828

2929
def global_headers(self):
3030
return {
31-
'user-agent': 'python-sdk-refs/tags/python6.12.1'
31+
'user-agent': 'python-sdk-refs/tags/python6.13.0'
3232
}
3333

3434
def __init__(self, config, call_back=None):

bandwidth/twofactorauth/controllers/base_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BaseController(object):
2828

2929
def global_headers(self):
3030
return {
31-
'user-agent': 'python-sdk-refs/tags/python6.12.1'
31+
'user-agent': 'python-sdk-refs/tags/python6.13.0'
3232
}
3333

3434
def __init__(self, config, call_back=None):

bandwidth/voice/bxml/verbs/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616
from .conference import Conference
1717
from .bridge import Bridge
1818
from .ring import Ring
19+
from .stop_gather import StopGather
20+
from .start_gather import StartGather
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
"""
2+
startGather.py
3+
4+
Representation of Bandwidth's startGather BXML verb
5+
6+
@copyright Bandwidth INC
7+
"""
8+
9+
from lxml import etree
10+
11+
from .base_verb import AbstractBxmlVerb
12+
13+
START_GATHER_TAG = "StartGather"
14+
15+
16+
class StartGather(AbstractBxmlVerb):
17+
18+
def __init__(self, dtmfUrl=None, dtmfMethod=None, username=None, password=None, tag=None):
19+
"""
20+
Initializes the Gather class with the following parameters
21+
22+
:param str dtmfUrl: The url to receive the dtmf event
23+
:param str dtmfMethod: The HTTP method used to send the gather dtmfUrl event
24+
:param str username: The username for callback http authentication
25+
:param str password: The password for callback http authentication
26+
:param str tag:
27+
"""
28+
29+
self.dtmfUrl = dtmfUrl
30+
self.dtmfMethod = dtmfMethod
31+
self.username = username
32+
self.password = password
33+
self.tag = tag
34+
35+
def to_bxml(self):
36+
root = etree.Element(START_GATHER_TAG)
37+
if self.dtmfUrl is not None:
38+
root.set("dtmfUrl", self.dtmfUrl)
39+
if self.dtmfMethod is not None:
40+
root.set("dtmfMethod", self.dtmfMethod)
41+
if self.username is not None:
42+
root.set("username", self.username)
43+
if self.password is not None:
44+
root.set("password", self.password)
45+
if self.tag is not None:
46+
root.set("tag", self.tag)
47+
return etree.tostring(root).decode()
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
stopGather.py
3+
4+
Representation of Bandwidth's stopGather BXML verb
5+
6+
@copyright Bandwidth INC
7+
"""
8+
9+
from .base_verb import AbstractBxmlVerb
10+
11+
12+
class StopGather(AbstractBxmlVerb):
13+
14+
def to_bxml(self):
15+
return "<StopGather/>"

bandwidth/voice/controllers/base_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BaseController(object):
2828

2929
def global_headers(self):
3030
return {
31-
'user-agent': 'python-sdk-refs/tags/python6.12.1'
31+
'user-agent': 'python-sdk-refs/tags/python6.13.0'
3232
}
3333

3434
def __init__(self, config, call_back=None):

bandwidth/webrtc/controllers/base_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BaseController(object):
2828

2929
def global_headers(self):
3030
return {
31-
'user-agent': 'python-sdk-refs/tags/python6.12.1'
31+
'user-agent': 'python-sdk-refs/tags/python6.13.0'
3232
}
3333

3434
def __init__(self, config, call_back=None):

bandwidth_sdk.egg-info/PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: bandwidth-sdk
3-
Version: 6.12.1
3+
Version: 6.13.0
44
Summary: Bandwidth's set of APIs
55
Home-page: https://apimatic.io
66
Author: APIMatic SDK Generator

bandwidth_sdk.egg-info/SOURCES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ bandwidth/voice/bxml/verbs/resume_recording.py
7575
bandwidth/voice/bxml/verbs/ring.py
7676
bandwidth/voice/bxml/verbs/send_dtmf.py
7777
bandwidth/voice/bxml/verbs/speak_sentence.py
78+
bandwidth/voice/bxml/verbs/start_gather.py
7879
bandwidth/voice/bxml/verbs/start_recording.py
80+
bandwidth/voice/bxml/verbs/stop_gather.py
7981
bandwidth/voice/bxml/verbs/stop_recording.py
8082
bandwidth/voice/bxml/verbs/transfer.py
8183
bandwidth/voice/controllers/__init__.py

0 commit comments

Comments
 (0)