-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTwilio
749 lines (707 loc) · 41.1 KB
/
Twilio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
Index: :retntation
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/:retntation b/:retntation
--- a/:retntation (revision c17f7e96fcfae28526a5470275605a8714f74b67)
+++ b/:retntation (date 1684432546000)
@@ -1,0 +1,10 @@
+# Stripe keys
+# https://dashboard.stripe.com/test/apikeys
+STRIPE_PUBLISHABLE_KEY=pk_live_51AXJ0vFCL1ycm3RcEzn0xodUBXt9InPZHaW6ZqrHGiXPUPsmWGT9U27OtFMn7gxFtaemBMBfXUmKnsoWUETNefs100MaPY8r0N
+STRIPE_SECRET_KEY=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
+# https://stripe.com/docs/webhooks/signatures
+STRIPE_WEBHOOK_SECRET=whsec_rR6YYZq6U6y86BHx3eNSK74NDXftdMZ5
+
+# Environment variables
+STATIC_DIR=https://webtechnicom.net/identity/verification/client
+
pContextInstance\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ payload = await self._version.fetch_async(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ method="GET",
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ uri=self._uri,
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return ExecutionStepContextInstance(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._version,
bash: self._version,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ payload,
bash: payload,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ flow_sid=self._solution["flow_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ execution_sid=self._solution["execution_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ step_sid=self._solution["step_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __repr__(self) -> str:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Provide a friendly representation
>
> :returns: Machine friendly representation
> """
bash: $'\n Provide a friendly representation\n\n :returns: Machine friendly representation\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ context = " ".join("{}={}".format(k, v) for k, v in self._solution.items())
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return "<Twilio.Studio.V1.ExecutionStepContextContext {}>".format(context)
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ class ExecutionStepContextList(ListResource):
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __init__(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self, version: Version, flow_sid: str, execution_sid: str, step_sid: str
bash: self,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ ):
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Initialize the ExecutionStepContextList
>
> :param version: Version that contains the resource
> :param flow_sid: The SID of the Flow with the Step to fetch.
> :param execution_sid: The SID of the Execution resource with the Step to fetch.
> :param step_sid: The SID of the Step to fetch.
>
> """
bash: $'\n Initialize the ExecutionStepContextList\n\n :param version: Version that contains the resource\n :param flow_sid: The SID of the Flow with the Step to fetch.\n :param execution_sid: The SID of the Execution resource with the Step to fetch.\n :param step_sid: The SID of the Step to fetch.\n\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ super().__init__(version)
bash: syntax error near unexpected token `.__init__'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ # Path Solution
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._solution = {
bash: self._solution: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ "flow_sid": flow_sid,
bash: flow_sid:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ "execution_sid": execution_sid,
bash: execution_sid:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ "step_sid": step_sid,
bash: step_sid:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ }
bash: syntax error near unexpected token `}'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def get(self) -> ExecutionStepContextContext:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Constructs a ExecutionStepContextContext
>
> """
bash: $'\n Constructs a ExecutionStepContextContext\n\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return ExecutionStepContextContext(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._version,
bash: self._version,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ flow_sid=self._solution["flow_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ execution_sid=self._solution["execution_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ step_sid=self._solution["step_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __call__(self) -> ExecutionStepContextContext:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Constructs a ExecutionStepContextContext
>
> """
bash: $'\n Constructs a ExecutionStepContextContext\n\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return ExecutionStepContextContext(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._version,
bash: self._version,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ flow_sid=self._solution["flow_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ execution_sid=self._solution["execution_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ step_sid=self._solution["step_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __repr__(self) -> str:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Provide a friendly representation
>
> :returns: Machine friendly representation
> """
bash: $'\n Provide a friendly representation\n\n :returns: Machine friendly representation\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return "<Twilio.Studio.V1.ExecutionStepContextList>"
bash: return: <Twilio.Studio.V1.ExecutionStepContextList>: numeric argument required
bash: return: can only `return' from a function or sourced script
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ r"""
> This code was generated by
> ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
> | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
> | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
>
> Twilio - Studio
> This is the public Twilio REST API.
>
> NOTE: This class is auto generated by OpenAPI Generator.
> https://openapi-generator.tech
> Do not edit the class manually.
> """
rom typing import Any, Dict, Optional
from twilio.base.instance_context import InstanceContext
from bash: r
This code was generated by
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| |
Twilio - Studio
This is the public Twilio REST API.
NOTE: This class is auto generated by OpenAPI Generator.
https://openapi-generator.tech
Do not edit the class manually.
: No such file or directory
twilio.base.instance_resource import InstanceResource
from twilio.base.list_resource import ListResource
from twilio.base.version import Version
class ExecutionContextInstance(InstanceResource):
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
"""
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ExecutionContext resource.
:ivar context: The current state of the Flow's Execut(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
ion. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution.
:ivar flow_sid(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ from typing import Any, Dict, Optional
: The SID of the Flow.
:ivar execution_sid: Thfrom: can't read /var/mail/typing
e SID of the context's Execution resource.
:ivar url: The absolute URL of the resource.
"""
def __init__(
self,
version: Version,
payload: Dict[str, Any],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ from twilio.base.instance_context import InstanceContext
flow_sid: str,
execution_sid: str,
):
from: can't read /var/mail/twilio.base.instance_context
super().__init__(version)
self.account_sid: Optional[str] = payload.get("account_sid")
self.context: Optional[Dict[str, object]] = payload.get("context")
self.flow_sid(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ from twilio.base.instance_resource import InstanceResource
: Optional[str] = payload.get("flow_sid")
from: can't read /var/mail/twilio.base.instance_resource
self.execution_sid: Optional[str] = payload.get("execution_sid")
self.url: Optional[str] = payload.get("url")
self._solution = {
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ from twilio.base.list_resource import ListResource
"flow_sid": flow_sid,
"executifrom: can't read /var/mail/twilio.base.list_resource
on_sid": execution_sid,
}
self._context: Optional[ExecutionContextContext] = None
@property
def _proxy(self) -> "ExecutionCon(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ from twilio.base.version import Version
textContext":
"""
Generate an instance context for the instance, the context is capafrom: can't read /var/mail/twilio.base.version
ble of
performing various actions. All instance actions are proxied to the context
:returns: ExecutionContextContext for this ExecutionContextInstance
"""
if self._context is None:
self._context = Executio(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
nContextContext(
self._version,
flow_sid=self._solution["flow_sid"],
execution_sid=self._solution["execution_sid"],
)
return self._context
def fetch(self) -> "ExecutionContextIn(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
stance":
"""
Fetch the ExecutionContextInstance
:returns: The fetched ExecutionContextInstance
"""
return self._proxy.fetch()
async def fetch_async(self)(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ class ExecutionContextInstance(InstanceResource):
bash: syntax error near unexpected token `('
-> "ExecutionContextInstance":
"""
Asynchronous coroutine to fetch the ExecutionContextInstance
:returns: The fetched ExecutionContextInstance
"""
return awa(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
it self._proxy.fetch_async()
def __repr__(self) -> str:
"""
Provide a friendly representation
:returns: Machine friendly representation
"""
context = " ".(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ExecutionContext resource.
> :ivar context: The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution.
> :ivar flow_sid: The SID of the Flow.
> :ivar execution_sid: The SID of the context's Execution resource.
> :ivar url: The absolute URL of the resource.
> """
on.items())
return "<Twilio.Studio.V1.ExecutionContextInstance {}>".format(context)
class ExecutionContextContext(InstanceContext):
def bash:
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ExecutionContext resource.
:ivar context: The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution.
:ivar flow_sid: The SID of the Flow.
:ivar execution_sid: The SID of the context's Execution resource.
:ivar url: The absolute URL of the resource.
: No such file or directory
__init__(self, version: Version, flow_sid: str, execution_sid: str):
"""
Initialize the ExecutionContextContext
:param version: Version that contains the resource
:par(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
am flow_sid: The SID of the Flow with the Execution context to fetch.
:param execution_sid: The SID of the Execution context to fetch.
"""
super().__init__(version)
# (venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __init__(
bash: syntax error near unexpected token `('
Path Solution
self._solution = {
"flow_sid": flow_sid,
"execution_sid": execution_sid,
}
self._uri = "(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self,
/Flows/{flow_sid}/Executions/{execution_sid}/Contebash: self,: command not found
xt".format(
**self._solution
)
def fetch(self) -> ExecutionContextInstance:
"""
Fetch the ExecutionContextIns(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ version: Version,
bash: version:: command not found
tance
:returns: The fetched ExecutionContextInstance
"""
payload = self._version.fetch(
method="GET",
uri=self._uri,
)
return Execut(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ payload: Dict[str, Any],
bash: payload:: command not found
ionContextInstance(
self._version,
payload,
flow_sid=self._solution["flow_sid"],
execution_sid=self._solution["execution_sid"],
)
async def(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ flow_sid: str,
fetch_async(self) -> ExecutionContextInstance:
bash: flow_sid:: command not found
"""
Asynchronous coroutine to fetch the ExecutionContextInstance
:returns: The fetched ExecutionContextInstance
"""
payload = await self._version.fetch_async(
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ execution_sid: str,
bash: execution_sid:: command not found
method="GET",
uri=self._uri,
)
return ExecutionContextInstance(
self._version,
payload,
flow_sid=self._solution["flow_sid"](venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ ):
bash: syntax error near unexpected token `)'
,
execution_sid=self._solution["execution_sid"],
)
def __repr__(self) -> str:
"""
Provide a friendly representation
:returns: Machine friendly represe(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ super().__init__(version)
bash: syntax error near unexpected token `.__init__'
ntation
"""
context = " ".join("{}={}".format(k, v) for k, v in self._solution.items())
return "<Twilio.Studio.V1.ExecutionContextContext {}>".format(context)
class Execution(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
ContextList(ListResource):
def __init__(self, version: Version, flow_sid: str, execution_sid: str):
"""
Initia(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self.account_sid: Optional[str] = payload.get("account_sid")
bash: syntax error near unexpected token `('
ntextList
:param version: Version that c(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self.context: Optional[Dict)
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self.flow_sid: Optional[str] = payload.get("flow_sid")
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self.execution_sid: Optional[str] = payload.get("execution_sid")
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self.url: Optional[str] = payload.get("url")
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._solution = {
bash: self._solution: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ "flow_sid": flow_sid,
bash: flow_sid:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ "execution_sid": execution_sid,
bash: execution_sid:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ }
bash: syntax error near unexpected token `}'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._context: Optional[ExecutionContextContext] = None
bash: self._context:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ @property
bash: @property: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def _proxy(self) -> "ExecutionContextContext":
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Generate an instance context for the instance, the context is capable of
> performing various actions. All instance actions are proxied to the context
>
> :returns: ExecutionContextContext for this ExecutionContextInstance
> """
bash: $'\n Generate an instance context for the instance, the context is capable of\n performing various actions. All instance actions are proxied to the context\n\n :returns: ExecutionContextContext for this ExecutionContextInstance\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ if self._context is None:
> self._context = ExecutionContextContext(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._version,
bash: self._version,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ flow_sid=self._solution["flow_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ execution_sid=self._solution["execution_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return self._context
bash: return: self._context: numeric argument required
bash: return: can only `return' from a function or sourced script
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def fetch(self) -> "ExecutionContextInstance":
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Fetch the ExecutionContextInstance
>
>
> :returns: The fetched ExecutionContextInstance
> """
bash: $'\n Fetch the ExecutionContextInstance\n\n\n :returns: The fetched ExecutionContextInstance\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return self._proxy.fetch()
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ async def fetch_async(self) -> "ExecutionContextInstance":
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Asynchronous coroutine to fetch the ExecutionContextInstance
>
>
> :returns: The fetched ExecutionContextInstance
> """
bash: $'\n Asynchronous coroutine to fetch the ExecutionContextInstance\n\n\n :returns: The fetched ExecutionContextInstance\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return await self._proxy.fetch_async()
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __repr__(self) -> str:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Provide a friendly representation
>
> :returns: Machine friendly representation
> """
bash: $'\n Provide a friendly representation\n\n :returns: Machine friendly representation\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ context = " ".join("{}={}".format(k, v) for k, v in self._solution.items())
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return "<Twilio.Studio.V1.ExecutionContextInstance {}>".format(context)
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ class ExecutionContextContext(InstanceContext):
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __init__(self, version: Version, flow_sid: str, execution_sid: str):
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Initialize the ExecutionContextContext
>
> :param version: Version that contains the resource
> :param flow_sid: The SID of the Flow with the Execution context to fetch.
> :param execution_sid: The SID of the Execution context to fetch.
> """
bash: $'\n Initialize the ExecutionContextContext\n\n :param version: Version that contains the resource\n :param flow_sid: The SID of the Flow with the Execution context to fetch.\n :param execution_sid: The SID of the Execution context to fetch.\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ super().__init__(version)
bash: syntax error near unexpected token `.__init__'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ # Path Solution
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._solution = {
bash: self._solution: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ "flow_sid": flow_sid,
bash: flow_sid:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ "execution_sid": execution_sid,
bash: execution_sid:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ }
bash: syntax error near unexpected token `}'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._uri = "/Flows/{flow_sid}/Executions/{execution_sid}/Context".format(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ **self._solution
bash: **self._solution: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def fetch(self) -> ExecutionContextInstance:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Fetch the ExecutionContextInstance
>
>
> :returns: The fetched ExecutionContextInstance
> """
bash: $'\n Fetch the ExecutionContextInstance\n\n\n :returns: The fetched ExecutionContextInstance\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ payload = self._version.fetch(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ method="GET",
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ uri=self._uri,
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return ExecutionContextInstance(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._version,
bash: self._version,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ payload,
bash: payload,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ flow_sid=self._solution["flow_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ execution_sid=self._solution["execution_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ async def fetch_async(self) -> ExecutionContextInstance:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Asynchronous coroutine to fetch the ExecutionContextInstance
>
>
> :returns: The fetched ExecutionContextInstance
> """
bash: $'\n Asynchronous coroutine to fetch the ExecutionContextInstance\n\n\n :returns: The fetched ExecutionContextInstance\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ payload = await self._version.fetch_async(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ method="GET",
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ uri=self._uri,
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return ExecutionContextInstance(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._version,
bash: self._version,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ payload,
bash: payload,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ flow_sid=self._solution["flow_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ execution_sid=self._solution["execution_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __repr__(self) -> str:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Provide a friendly representation
>
> :returns: Machine friendly representation
> """
bash: $'\n Provide a friendly representation\n\n :returns: Machine friendly representation\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ context = " ".join("{}={}".format(k, v) for k, v in self._solution.items())
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return "<Twilio.Studio.V1.ExecutionContextContext {}>".format(context)
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ class ExecutionContextList(ListResource):
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __init__(self, version: Version, flow_sid: str, execution_sid: str):
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Initialize the ExecutionContextList
>
> :param version: Version that contains the resource
> :param flow_sid: The SID of the Flow with the Execution context to fetch.
> :param execution_sid: The SID of the Execution context to fetch.
>
> """
bash: $'\n Initialize the ExecutionContextList\n\n :param version: Version that contains the resource\n :param flow_sid: The SID of the Flow with the Execution context to fetch.\n :param execution_sid: The SID of the Execution context to fetch.\n\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ super().__init__(version)
bash: syntax error near unexpected token `.__init__'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ # Path Solution
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._solution = {
bash: self._solution: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ "flow_sid": flow_sid,
bash: flow_sid:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ "execution_sid": execution_sid,
bash: execution_sid:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ }
bash: syntax error near unexpected token `}'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def get(self) -> ExecutionContextContext:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Constructs a ExecutionContextContext
>
> """
bash: $'\n Constructs a ExecutionContextContext\n\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return ExecutionContextContext(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._version,
bash: self._version,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ flow_sid=self._solution["flow_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ execution_sid=self._solution["execution_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __call__(self) -> ExecutionContextContext:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Constructs a ExecutionContextContext
>
> """
bash: $'\n Constructs a ExecutionContextContext\n\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return ExecutionContextContext(
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._version,
bash: self._version,: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ flow_sid=self._solution["flow_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ execution_sid=self._solution["execution_sid"],
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ )
bash: syntax error near unexpected token `)'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __repr__(self) -> str:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Provide a friendly representation
>
> :returns: Machine friendly representation
> """
bash: $'\n Provide a friendly representation\n\n :returns: Machine friendly representation\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return "<Twilio.Studio.V1.ExecutionContextList>"
bash: return: <Twilio.Studio.V1.ExecutionContextList>: numeric argument required
bash: return: can only `return' from a function or sourced script
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ r"""
> This code was generated by
> ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
> | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
> | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
>
> NOTE: This class is auto generated by OpenAPI Generator.
> https://openapi-generator.tech
> Do not edit the class manually.
> """
nal
from twilio.base.domain import Domain
from twilio.rest import Client
from twilio.rest.studio.v1bash: r
This code was generated by
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| |
NOTE: This class is auto generated by OpenAPI Generator.
https://openapi-generator.tech
Do not edit the class manually.
: No such file or directory
import V1
from twilio.rest.studio.v2 import V2
class StudioBase(Domain):
def __init__(self, twilio: Client):
"""
Initialize the(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
o
"""
super().__init__(twilio, "https://studio.twilio.com")
self._v1: Optional[V1] = None
self._v2: Optional[V2] = Non(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ from typing import Optional
e
@property
def v1(self) -> V1:
"from: can't read /var/mail/typing
""
:returns: Versions v1 of Studio
"""
if self._v1 is None:
self._v1 = V1(self)
return self._v1
@property
def v2(self) -> V2:
"""
:(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
returns: Versions v2 of Studio
"""
if self._v2 is None:
self._v2 = V2(self)
return self._v2
def __repr__(self) -> str:
"""
Provide a friendly r(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ from twilio.base.domain import Domain
from: can't read /var/mail/twilio.base.domainepresentation
:returns: Machine friendly r
epresentation
"""
return "<Twilio.Studio>"
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ from twilio.rest import Client
from: can't read /var/mail/twilio.rest
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ from twilio.rest.studio.v1 import V1
from: can't read /var/mail/twilio.rest.studio.v1
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ from twilio.rest.studio.v2 import V2
from: can't read /var/mail/twilio.rest.studio.v2
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ class StudioBase(Domain):
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __init__(self, twilio: Client):
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Initialize the Studio Domain
>
> :returns: Domain for Studio
> """
bash: $'\n Initialize the Studio Domain\n\n :returns: Domain for Studio\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ super().__init__(twilio, "https://studio.twilio.com")
bash: syntax error near unexpected token `.__init__'
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._v1: Optional[V1] = None
bash: self._v1:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ self._v2: Optional[V2] = None
bash: self._v2:: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ @property
bash: @property: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def v1(self) -> V1:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> :returns: Versions v1 of Studio
> """
bash: $'\n :returns: Versions v1 of Studio\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ if self._v1 is None:
> self._v1 = V1(self)
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return self._v1
bash: return: self._v1: numeric argument required
bash: return: can only `return' from a function or sourced script
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ @property
bash: @property: command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def v2(self) -> V2:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> :returns: Versions v2 of Studio
> """
bash: $'\n :returns: Versions v2 of Studio\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ if self._v2 is None:
> self._v2 = V2(self)
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return self._v2
bash: return: self._v2: numeric argument required
bash: return: can only `return' from a function or sourced script
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ def __repr__(self) -> str:
bash: syntax error near unexpected token `('
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ """
> Provide a friendly representation
> :returns: Machine friendly representation
> """
bash: $'\n Provide a friendly representation\n :returns: Machine friendly representation\n ': command not found
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $ return "<Twilio.Studio>"
bash: return: <Twilio.Studio>: numeric argument required
bash: return: can only `return' from a function or sourced script
(venv) @ellipsis52 ➜ /workspaces/twilio-python (main) $