8000 Merge pull request #13 from makaimc/wds · sangsiri/twilio-python@9744776 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9744776

Browse files
committed
Merge pull request twilio#13 from makaimc/wds
fixing init timeout argument bug in task queues and workers
2 parents 8c7b0d3 + 37e5ae6 commit 9744776

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

twilio/rest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def task_queues(self, workspace_sid):
292292
the given workspace_sid
293293
"""
294294
base_uri = "{}/{}".format(self.workspace_uri, workspace_sid)
295-
return TaskQueues(base_uri, self.auth)
295+
return TaskQueues(base_uri, self.auth, self.timeout)
296296

297297
def tasks(self, workspace_sid):
298298
"""

twilio/rest/resources/task_router/workers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Workers(NextGenListResource):
2929
name = "Workers"
3030
instance = Worker
3131

32-
def __init__(self, base_uri, auth, **kwargs):
32+
def __init__(self, base_uri, auth, timeout, **kwargs):
3333
super(Workers, self).__init__(base_uri, auth, **kwargs)
3434
self.statistics = Statistics(self.uri, auth, **kwargs)
3535

twilio/rest/resources/task_router/workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def create(self, friendly_name, configuration, assignment_callback_url,
3737
:param friendly_name: A string representing a human readable name for
3838
this Workflow. Examples include 'Inbound Call Workflow' or '2014
3939
Outbound Campaign'.
40-
:param configuration: YAML document configuring the rules for this
40+
:param configuration: JSON document configuring the rules for this
4141
Workflow.
4242
:param assignment_callback_url: A valid URL for the application that
4343
will process task assignment events.

0 commit comments

Comments
 (0)
0