8000 Fix formatting · patrick91/twilio-python@9dab5d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9dab5d8

Browse files
committed
Fix formatting
1 parent 904de8e commit 9dab5d8

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

docs/usage/task-router.rst

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -64,26 +64,26 @@ unique ID:
6464
# Some JSON to configure the Workflow. See the documentation at
6565
# http://www.twilio.com/docs/taskrouter for more details.
6666
CONFIG = """
67-
{
68-
"task_routing":{
69-
"filters":[
70-
{
71-
"friendly_name":"Gold Tickets",
72-
"expression":"customer_value == 'Gold' AND type == 'ticket'",
73-
"targets":[
74-
{
75-
"task_queue_sid":"WQ0123456789abcdef0123456789abcdef",
76-
"priority":"2"
77-
}
78-
]
79-
}
80-
],
81-
"default_filter":{
82-
"task_queue_sid":"WQabcdef01234567890123456789abcdef"
83-
}
84-
}
85-
}
86-
"""
67+
{
68+
"task_routing":{
69+
"filters":[
70+
{
71+
"friendly_name":"Gold Tickets",
72+
"expression":"customer_value == 'Gold' AND type == 'ticket'",
73+
"targets":[
74+
{
75+
"task_queue_sid":"WQ0123456789abcdef0123456789abcdef",
76+
"priority":"2"
77+
}
78+
]
79+
}
80+
],
81+
"default_filter":{
82+
"task_queue_sid":"WQabcdef01234567890123456789abcdef"
83+
}
84+
}
85+
}
86+
"""
8787
8888
client = TwilioTaskRouterClient(ACCOUNT_SID, AUTH_TOKEN)
8989
@@ -146,10 +146,10 @@ To create a new :class:`Worker`:
146146
worker = client.workers(WORKSPACE_SID).create(
147147
friendly_name="Jamie",
148148
attributes="""{
149-
"phone": "+14155551234",
150-
"languages": ["EN", "ES"]
151-
}
152-
"""
149+
"phone": "+14155551234",
150+
"languages": ["EN", "ES"]
151+
}
152+
"""
153153
)
154154
print worker.sid
155155
@@ -207,12 +207,12 @@ To create a new :class:`Task` via the REST API:
207207
WORKSPACE_SID = "WSZZZZZZZZZZZZZZ"
208208
# Some JSON containing attributes for this task. User-defined.
209209
TASK_ATTRIBUTES = """{
210-
"type": "call",
211-
"contact": "+15558675309",
212-
"customer-value": "gold",
213-
"task-reason": "support",
214-
"callSid": "CA42ed11..."
215-
}"""
210+
"type": "call",
211+
"contact": "+15558675309",
212+
"customer-value": "gold",
213+
"task-reason": "support",
214+
"callSid": "CA42ed11..."
215+
}"""
216216
217217
218218
client = TwilioTaskRouterClient(ACCOUNT_SID, AUTH_TOKEN)

docs/usage/taskrouter-tokens.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TaskRouter Capability Tokens
66

77

88
TaskRouter's Worker.js library lets you add
9-
`TaskRouter<https://www.twilio.com/docs/taskrouter>`_ Worker Activity controls
9+
`TaskRouter<https://www.twilio.com/docs/taskrouter>_` Worker Activity controls
1010
and event notifications to your web applications. Worker.js uses a Websocket
1111
connection to TaskRouter to receive realtime notifications of Worker
1212
Reservations and Task details, and provides a simple API for modifying a

0 commit comments

Comments
 (0)
0