twilio-ruby 5.0.0.rc24 → 5.0.0.rc25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +32 -12
- data/LICENSE.md +12 -12
- data/README.md +28 -29
- data/examples/examples.rb +47 -58
- data/examples/print-call-log.rb +6 -6
- data/lib/twilio-ruby/jwt/jwt.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1.rb +3 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010.rb +3 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +80 -23
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +14 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +10 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +10 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +18 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +14 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +8 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +16 -8
- data/lib/twilio-ruby/rest/chat/v1.rb +6 -2
- data/lib/twilio-ruby/rest/chat/v1/service.rb +12 -3
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +12 -3
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +2 -1
- data/lib/twilio-ruby/rest/chat/v2.rb +6 -2
- data/lib/twilio-ruby/rest/chat/v2/service.rb +12 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +12 -3
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -1
- data/lib/twilio-ruby/rest/fax/v1.rb +3 -1
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +4 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +6 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +12 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +12 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +2 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +6 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +12 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +12 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -1
- data/lib/twilio-ruby/rest/lookups/v1.rb +3 -1
- data/lib/twilio-ruby/rest/messaging/v1.rb +3 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +26 -6
- data/lib/twilio-ruby/rest/monitor/v1.rb +6 -2
- data/lib/twilio-ruby/rest/notify/v1.rb +6 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +12 -4
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -1
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +8 -2
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +6 -2
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +2 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +3 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +18 -12
- data/lib/twilio-ruby/rest/preview/marketplace.rb +6 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +4 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +4 -1
- data/lib/twilio-ruby/rest/preview/proxy.rb +3 -1
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +12 -3
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +8 -2
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +4 -1
- data/lib/twilio-ruby/rest/preview/sync.rb +3 -1
- data/lib/twilio-ruby/rest/preview/sync/service.rb +12 -3
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +8 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +8 -2
- data/lib/twilio-ruby/rest/preview/wireless.rb +9 -3
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v1.rb +9 -3
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +4 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +4 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +8 -2
- data/lib/twilio-ruby/rest/sync/v1.rb +3 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +12 -3
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +8 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +8 -2
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +3 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +30 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +4 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +4 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +12 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +2 -1
- data/lib/twilio-ruby/rest/trunking/v1.rb +3 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +16 -4
- data/lib/twilio-ruby/rest/video/v1.rb +6 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +17 -3
- data/lib/twilio-ruby/rest/video/v1/room.rb +4 -1
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +31 -3
- data/lib/twilio-ruby/rest/wireless/v1.rb +9 -3
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +16 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -1
- data/lib/twilio-ruby/twiml/messaging_response.rb +8 -2
- data/lib/twilio-ruby/twiml/twiml.rb +3 -5
- data/lib/twilio-ruby/twiml/voice_response.rb +60 -42
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call/recording_spec.rb +14 -2
- data/spec/integration/api/v2010/account/recording_spec.rb +14 -2
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +28 -0
- data/spec/integration/messaging/v1/service_spec.rb +4 -0
- data/spec/integration/notify/v1/service/notification_spec.rb +35 -0
- data/spec/integration/video/v1/recording_spec.rb +45 -0
- data/spec/integration/video/v1/room/recording_spec.rb +4 -3
- data/spec/integration/wireless/v1/rate_plan_spec.rb +8 -0
- data/spec/twiml/messaging_response_spec.rb +28 -0
- data/spec/twiml/voice_response_spec.rb +9 -0
- metadata +2 -2
data/examples/print-call-log.rb
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require 'rubygems'
|
|
2
1
|
require 'twilio-ruby'
|
|
3
2
|
|
|
4
3
|
# print a list of all phone calls, what phone number each was to/from, and how
|
|
@@ -7,18 +6,19 @@ require 'twilio-ruby'
|
|
|
7
6
|
# put your Twilio credentials here. you can find your AccountSid and AuthToken
|
|
8
7
|
# at the top of your account dashboard page located at:
|
|
9
8
|
# https://www.twilio.com/user/account
|
|
10
|
-
account_sid = '
|
|
11
|
-
auth_token = '
|
|
9
|
+
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
|
10
|
+
auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
|
|
12
11
|
|
|
13
12
|
# set up a client
|
|
14
13
|
client = Twilio::REST::Client.new(account_sid, auth_token)
|
|
15
14
|
|
|
16
|
-
calls = client.calls.
|
|
15
|
+
calls = client.calls.page()
|
|
17
16
|
|
|
18
17
|
begin
|
|
19
18
|
calls.each do |call|
|
|
20
19
|
price = call.price || '0.00' # since apparently prices can be nil...
|
|
21
|
-
puts call.sid + "\t" + call.from + "\t" + call.to + "\t" + price
|
|
20
|
+
puts call.sid + "\t" + call.from + "\t" + call.to + "\t" + price.to_s
|
|
22
21
|
end
|
|
23
22
|
calls = calls.next_page
|
|
24
|
-
end while not calls.
|
|
23
|
+
end while not calls.nil?
|
|
24
|
+
|
data/lib/twilio-ruby/jwt/jwt.rb
CHANGED
|
@@ -27,8 +27,11 @@ module Twilio
|
|
|
27
27
|
# Access the public_key
|
|
28
28
|
# @param [String] sid The Credential Sid that uniquely identifies the Credential
|
|
29
29
|
# to fetch
|
|
30
|
-
# @return [PublicKeyList] PublicKeyList
|
|
30
|
+
# @return [PublicKeyList] if a(n) PublicKeyList object was created.
|
|
31
|
+
# @return [PublicKeyContext] if a(n) PublicKeyContext object was created.
|
|
31
32
|
def public_key(sid=:unset)
|
|
33
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
34
|
+
|
|
32
35
|
if sid != :unset
|
|
33
36
|
return PublicKeyContext.new(
|
|
34
37
|
@version,
|
|
@@ -285,8 +285,11 @@ module Twilio
|
|
|
285
285
|
|
|
286
286
|
##
|
|
287
287
|
# Access the addresses
|
|
288
|
-
# @return [AddressList] AddressList
|
|
288
|
+
# @return [AddressList] if a(n) AddressList object was created.
|
|
289
|
+
# @return [AddressContext] if a(n) AddressContext object was created.
|
|
289
290
|
def addresses(sid=:unset)
|
|
291
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
292
|
+
|
|
290
293
|
if sid != :unset
|
|
291
294
|
return AddressContext.new(
|
|
292
295
|
@version,
|
|
@@ -307,8 +310,11 @@ module Twilio
|
|
|
307
310
|
|
|
308
311
|
##
|
|
309
312
|
# Access the applications
|
|
310
|
-
# @return [ApplicationList] ApplicationList
|
|
313
|
+
# @return [ApplicationList] if a(n) ApplicationList object was created.
|
|
314
|
+
# @return [ApplicationContext] if a(n) ApplicationContext object was created.
|
|
311
315
|
def applications(sid=:unset)
|
|
316
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
317
|
+
|
|
312
318
|
if sid != :unset
|
|
313
319
|
return ApplicationContext.new(
|
|
314
320
|
@version,
|
|
@@ -329,8 +335,11 @@ module Twilio
|
|
|
329
335
|
|
|
330
336
|
##
|
|
331
337
|
# Access the authorized_connect_apps
|
|
332
|
-
# @return [AuthorizedConnectAppList] AuthorizedConnectAppList
|
|
338
|
+
# @return [AuthorizedConnectAppList] if a(n) AuthorizedConnectAppList object was created.
|
|
339
|
+
# @return [AuthorizedConnectAppContext] if a(n) AuthorizedConnectAppContext object was created.
|
|
333
340
|
def authorized_connect_apps(connect_app_sid=:unset)
|
|
341
|
+
raise ArgumentError, 'connect_app_sid cannot be nil' if connect_app_sid.nil?
|
|
342
|
+
|
|
334
343
|
if connect_app_sid != :unset
|
|
335
344
|
return AuthorizedConnectAppContext.new(
|
|
336
345
|
@version,
|
|
@@ -351,8 +360,11 @@ module Twilio
|
|
|
351
360
|
|
|
352
361
|
##
|
|
353
362
|
# Access the available_phone_numbers
|
|
354
|
-
# @return [AvailablePhoneNumberCountryList] AvailablePhoneNumberCountryList
|
|
363
|
+
# @return [AvailablePhoneNumberCountryList] if a(n) AvailablePhoneNumberCountryList object was created.
|
|
364
|
+
# @return [AvailablePhoneNumberCountryContext] if a(n) AvailablePhoneNumberCountryContext object was created.
|
|
355
365
|
def available_phone_numbers(country_code=:unset)
|
|
366
|
+
raise ArgumentError, 'country_code cannot be nil' if country_code.nil?
|
|
367
|
+
|
|
356
368
|
if country_code != :unset
|
|
357
369
|
return AvailablePhoneNumberCountryContext.new(
|
|
358
370
|
@version,
|
|
@@ -373,8 +385,11 @@ module Twilio
|
|
|
373
385
|
|
|
374
386
|
##
|
|
375
387
|
# Access the calls
|
|
376
|
-
# @return [CallList] CallList
|
|
388
|
+
# @return [CallList] if a(n) CallList object was created.
|
|
389
|
+
# @return [CallContext] if a(n) CallContext object was created.
|
|
377
390
|
def calls(sid=:unset)
|
|
391
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
392
|
+
|
|
378
393
|
if sid != :unset
|
|
379
394
|
return CallContext.new(
|
|
380
395
|
@version,
|
|
@@ -395,8 +410,11 @@ module Twilio
|
|
|
395
410
|
|
|
396
411
|
##
|
|
397
412
|
# Access the conferences
|
|
398
|
-
# @return [ConferenceList] ConferenceList
|
|
413
|
+
# @return [ConferenceList] if a(n) ConferenceList object was created.
|
|
414
|
+
# @return [ConferenceContext] if a(n) ConferenceContext object was created.
|
|
399
415
|
def conferences(sid=:unset)
|
|
416
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
417
|
+
|
|
400
418
|
if sid != :unset
|
|
401
419
|
return ConferenceContext.new(
|
|
402
420
|
@version,
|
|
@@ -417,8 +435,11 @@ module Twilio
|
|
|
417
435
|
|
|
418
436
|
##
|
|
419
437
|
# Access the connect_apps
|
|
420
|
-
# @return [ConnectAppList] ConnectAppList
|
|
438
|
+
# @return [ConnectAppList] if a(n) ConnectAppList object was created.
|
|
439
|
+
# @return [ConnectAppContext] if a(n) ConnectAppContext object was created.
|
|
421
440
|
def connect_apps(sid=:unset)
|
|
441
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
442
|
+
|
|
422
443
|
if sid != :unset
|
|
423
444
|
return ConnectAppContext.new(
|
|
424
445
|
@version,
|
|
@@ -439,8 +460,11 @@ module Twilio
|
|
|
439
460
|
|
|
440
461
|
##
|
|
441
462
|
# Access the incoming_phone_numbers
|
|
442
|
-
# @return [IncomingPhoneNumberList] IncomingPhoneNumberList
|
|
463
|
+
# @return [IncomingPhoneNumberList] if a(n) IncomingPhoneNumberList object was created.
|
|
464
|
+
# @return [IncomingPhoneNumberContext] if a(n) IncomingPhoneNumberContext object was created.
|
|
443
465
|
def incoming_phone_numbers(sid=:unset)
|
|
466
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
467
|
+
|
|
444
468
|
if sid != :unset
|
|
445
469
|
return IncomingPhoneNumberContext.new(
|
|
446
470
|
@version,
|
|
@@ -461,8 +485,11 @@ module Twilio
|
|
|
461
485
|
|
|
462
486
|
##
|
|
463
487
|
# Access the keys
|
|
464
|
-
# @return [KeyList] KeyList
|
|
488
|
+
# @return [KeyList] if a(n) KeyList object was created.
|
|
489
|
+
# @return [KeyContext] if a(n) KeyContext object was created.
|
|
465
490
|
def keys(sid=:unset)
|
|
491
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
492
|
+
|
|
466
493
|
if sid != :unset
|
|
467
494
|
return KeyContext.new(
|
|
468
495
|
@version,
|
|
@@ -483,8 +510,11 @@ module Twilio
|
|
|
483
510
|
|
|
484
511
|
##
|
|
485
512
|
# Access the messages
|
|
486
|
-
# @return [MessageList] MessageList
|
|
513
|
+
# @return [MessageList] if a(n) MessageList object was created.
|
|
514
|
+
# @return [MessageContext] if a(n) MessageContext object was created.
|
|
487
515
|
def messages(sid=:unset)
|
|
516
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
517
|
+
|
|
488
518
|
if sid != :unset
|
|
489
519
|
return MessageContext.new(
|
|
490
520
|
@version,
|
|
@@ -505,7 +535,8 @@ module Twilio
|
|
|
505
535
|
|
|
506
536
|
##
|
|
507
537
|
# Access the new_keys
|
|
508
|
-
# @return [NewKeyList] NewKeyList
|
|
538
|
+
# @return [NewKeyList] if a(n) NewKeyList object was created.
|
|
539
|
+
# @return [NewKeyContext] if a(n) NewKeyContext object was created.
|
|
509
540
|
def new_keys
|
|
510
541
|
unless @new_keys
|
|
511
542
|
@new_keys = NewKeyList.new(
|
|
@@ -519,7 +550,8 @@ module Twilio
|
|
|
519
550
|
|
|
520
551
|
##
|
|
521
552
|
# Access the new_signing_keys
|
|
522
|
-
# @return [NewSigningKeyList] NewSigningKeyList
|
|
553
|
+
# @return [NewSigningKeyList] if a(n) NewSigningKeyList object was created.
|
|
554
|
+
# @return [NewSigningKeyContext] if a(n) NewSigningKeyContext object was created.
|
|
523
555
|
def new_signing_keys
|
|
524
556
|
unless @new_signing_keys
|
|
525
557
|
@new_signing_keys = NewSigningKeyList.new(
|
|
@@ -533,8 +565,11 @@ module Twilio
|
|
|
533
565
|
|
|
534
566
|
##
|
|
535
567
|
# Access the notifications
|
|
536
|
-
# @return [NotificationList] NotificationList
|
|
568
|
+
# @return [NotificationList] if a(n) NotificationList object was created.
|
|
569
|
+
# @return [NotificationContext] if a(n) NotificationContext object was created.
|
|
537
570
|
def notifications(sid=:unset)
|
|
571
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
572
|
+
|
|
538
573
|
if sid != :unset
|
|
539
574
|
return NotificationContext.new(
|
|
540
575
|
@version,
|
|
@@ -555,8 +590,11 @@ module Twilio
|
|
|
555
590
|
|
|
556
591
|
##
|
|
557
592
|
# Access the outgoing_caller_ids
|
|
558
|
-
# @return [OutgoingCallerIdList] OutgoingCallerIdList
|
|
593
|
+
# @return [OutgoingCallerIdList] if a(n) OutgoingCallerIdList object was created.
|
|
594
|
+
# @return [OutgoingCallerIdContext] if a(n) OutgoingCallerIdContext object was created.
|
|
559
595
|
def outgoing_caller_ids(sid=:unset)
|
|
596
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
597
|
+
|
|
560
598
|
if sid != :unset
|
|
561
599
|
return OutgoingCallerIdContext.new(
|
|
562
600
|
@version,
|
|
@@ -577,8 +615,11 @@ module Twilio
|
|
|
577
615
|
|
|
578
616
|
##
|
|
579
617
|
# Access the queues
|
|
580
|
-
# @return [QueueList] QueueList
|
|
618
|
+
# @return [QueueList] if a(n) QueueList object was created.
|
|
619
|
+
# @return [QueueContext] if a(n) QueueContext object was created.
|
|
581
620
|
def queues(sid=:unset)
|
|
621
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
622
|
+
|
|
582
623
|
if sid != :unset
|
|
583
624
|
return QueueContext.new(
|
|
584
625
|
@version,
|
|
@@ -599,8 +640,11 @@ module Twilio
|
|
|
599
640
|
|
|
600
641
|
##
|
|
601
642
|
# Access the recordings
|
|
602
|
-
# @return [RecordingList] RecordingList
|
|
643
|
+
# @return [RecordingList] if a(n) RecordingList object was created.
|
|
644
|
+
# @return [RecordingContext] if a(n) RecordingContext object was created.
|
|
603
645
|
def recordings(sid=:unset)
|
|
646
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
647
|
+
|
|
604
648
|
if sid != :unset
|
|
605
649
|
return RecordingContext.new(
|
|
606
650
|
@version,
|
|
@@ -621,8 +665,11 @@ module Twilio
|
|
|
621
665
|
|
|
622
666
|
##
|
|
623
667
|
# Access the signing_keys
|
|
624
|
-
# @return [SigningKeyList] SigningKeyList
|
|
668
|
+
# @return [SigningKeyList] if a(n) SigningKeyList object was created.
|
|
669
|
+
# @return [SigningKeyContext] if a(n) SigningKeyContext object was created.
|
|
625
670
|
def signing_keys(sid=:unset)
|
|
671
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
672
|
+
|
|
626
673
|
if sid != :unset
|
|
627
674
|
return SigningKeyContext.new(
|
|
628
675
|
@version,
|
|
@@ -643,7 +690,8 @@ module Twilio
|
|
|
643
690
|
|
|
644
691
|
##
|
|
645
692
|
# Access the sip
|
|
646
|
-
# @return [SipList] SipList
|
|
693
|
+
# @return [SipList] if a(n) SipList object was created.
|
|
694
|
+
# @return [SipContext] if a(n) SipContext object was created.
|
|
647
695
|
def sip
|
|
648
696
|
unless @sip
|
|
649
697
|
@sip = SipList.new(
|
|
@@ -657,8 +705,11 @@ module Twilio
|
|
|
657
705
|
|
|
658
706
|
##
|
|
659
707
|
# Access the short_codes
|
|
660
|
-
# @return [ShortCodeList] ShortCodeList
|
|
708
|
+
# @return [ShortCodeList] if a(n) ShortCodeList object was created.
|
|
709
|
+
# @return [ShortCodeContext] if a(n) ShortCodeContext object was created.
|
|
661
710
|
def short_codes(sid=:unset)
|
|
711
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
712
|
+
|
|
662
713
|
if sid != :unset
|
|
663
714
|
return ShortCodeContext.new(
|
|
664
715
|
@version,
|
|
@@ -679,7 +730,8 @@ module Twilio
|
|
|
679
730
|
|
|
680
731
|
##
|
|
681
732
|
# Access the tokens
|
|
682
|
-
# @return [TokenList] TokenList
|
|
733
|
+
# @return [TokenList] if a(n) TokenList object was created.
|
|
734
|
+
# @return [TokenContext] if a(n) TokenContext object was created.
|
|
683
735
|
def tokens
|
|
684
736
|
unless @tokens
|
|
685
737
|
@tokens = TokenList.new(
|
|
@@ -693,8 +745,11 @@ module Twilio
|
|
|
693
745
|
|
|
694
746
|
##
|
|
695
747
|
# Access the transcriptions
|
|
696
|
-
# @return [TranscriptionList] TranscriptionList
|
|
748
|
+
# @return [TranscriptionList] if a(n) TranscriptionList object was created.
|
|
749
|
+
# @return [TranscriptionContext] if a(n) TranscriptionContext object was created.
|
|
697
750
|
def transcriptions(sid=:unset)
|
|
751
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
752
|
+
|
|
698
753
|
if sid != :unset
|
|
699
754
|
return TranscriptionContext.new(
|
|
700
755
|
@version,
|
|
@@ -715,7 +770,8 @@ module Twilio
|
|
|
715
770
|
|
|
716
771
|
##
|
|
717
772
|
# Access the usage
|
|
718
|
-
# @return [UsageList] UsageList
|
|
773
|
+
# @return [UsageList] if a(n) UsageList object was created.
|
|
774
|
+
# @return [UsageContext] if a(n) UsageContext object was created.
|
|
719
775
|
def usage
|
|
720
776
|
unless @usage
|
|
721
777
|
@usage = UsageList.new(
|
|
@@ -729,7 +785,8 @@ module Twilio
|
|
|
729
785
|
|
|
730
786
|
##
|
|
731
787
|
# Access the validation_requests
|
|
732
|
-
# @return [ValidationRequestList] ValidationRequestList
|
|
788
|
+
# @return [ValidationRequestList] if a(n) ValidationRequestList object was created.
|
|
789
|
+
# @return [ValidationRequestContext] if a(n) ValidationRequestContext object was created.
|
|
733
790
|
def validation_requests
|
|
734
791
|
unless @validation_requests
|
|
735
792
|
@validation_requests = ValidationRequestList.new(
|
|
@@ -304,7 +304,8 @@ module Twilio
|
|
|
304
304
|
|
|
305
305
|
##
|
|
306
306
|
# Access the dependent_phone_numbers
|
|
307
|
-
# @return [DependentPhoneNumberList] DependentPhoneNumberList
|
|
307
|
+
# @return [DependentPhoneNumberList] if a(n) DependentPhoneNumberList object was created.
|
|
308
|
+
# @return [DependentPhoneNumberContext] if a(n) DependentPhoneNumberContext object was created.
|
|
308
309
|
def dependent_phone_numbers
|
|
309
310
|
unless @dependent_phone_numbers
|
|
310
311
|
@dependent_phone_numbers = DependentPhoneNumberList.new(
|
|
@@ -208,7 +208,8 @@ module Twilio
|
|
|
208
208
|
|
|
209
209
|
##
|
|
210
210
|
# Access the local
|
|
211
|
-
# @return [LocalList] LocalList
|
|
211
|
+
# @return [LocalList] if a(n) LocalList object was created.
|
|
212
|
+
# @return [LocalContext] if a(n) LocalContext object was created.
|
|
212
213
|
def local
|
|
213
214
|
unless @local
|
|
214
215
|
@local = LocalList.new(
|
|
@@ -223,7 +224,8 @@ module Twilio
|
|
|
223
224
|
|
|
224
225
|
##
|
|
225
226
|
# Access the toll_free
|
|
226
|
-
# @return [TollFreeList] TollFreeList
|
|
227
|
+
# @return [TollFreeList] if a(n) TollFreeList object was created.
|
|
228
|
+
# @return [TollFreeContext] if a(n) TollFreeContext object was created.
|
|
227
229
|
def toll_free
|
|
228
230
|
unless @toll_free
|
|
229
231
|
@toll_free = TollFreeList.new(
|
|
@@ -238,7 +240,8 @@ module Twilio
|
|
|
238
240
|
|
|
239
241
|
##
|
|
240
242
|
# Access the mobile
|
|
241
|
-
# @return [MobileList] MobileList
|
|
243
|
+
# @return [MobileList] if a(n) MobileList object was created.
|
|
244
|
+
# @return [MobileContext] if a(n) MobileContext object was created.
|
|
242
245
|
def mobile
|
|
243
246
|
unless @mobile
|
|
244
247
|
@mobile = MobileList.new(
|
|
@@ -295,8 +295,11 @@ module Twilio
|
|
|
295
295
|
##
|
|
296
296
|
# Access the feedback_summaries
|
|
297
297
|
# @param [String] sid The sid
|
|
298
|
-
# @return [FeedbackSummaryList] FeedbackSummaryList
|
|
298
|
+
# @return [FeedbackSummaryList] if a(n) FeedbackSummaryList object was created.
|
|
299
|
+
# @return [FeedbackSummaryContext] if a(n) FeedbackSummaryContext object was created.
|
|
299
300
|
def feedback_summaries(sid=:unset)
|
|
301
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
302
|
+
|
|
300
303
|
if sid != :unset
|
|
301
304
|
return FeedbackSummaryContext.new(
|
|
302
305
|
@version,
|
|
@@ -449,8 +452,11 @@ module Twilio
|
|
|
449
452
|
|
|
450
453
|
##
|
|
451
454
|
# Access the recordings
|
|
452
|
-
# @return [RecordingList] RecordingList
|
|
455
|
+
# @return [RecordingList] if a(n) RecordingList object was created.
|
|
456
|
+
# @return [RecordingContext] if a(n) RecordingContext object was created.
|
|
453
457
|
def recordings(sid=:unset)
|
|
458
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
459
|
+
|
|
454
460
|
if sid != :unset
|
|
455
461
|
return RecordingContext.new(
|
|
456
462
|
@version,
|
|
@@ -473,8 +479,11 @@ module Twilio
|
|
|
473
479
|
|
|
474
480
|
##
|
|
475
481
|
# Access the notifications
|
|
476
|
-
# @return [NotificationList] NotificationList
|
|
482
|
+
# @return [NotificationList] if a(n) NotificationList object was created.
|
|
483
|
+
# @return [NotificationContext] if a(n) NotificationContext object was created.
|
|
477
484
|
def notifications(sid=:unset)
|
|
485
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
486
|
+
|
|
478
487
|
if sid != :unset
|
|
479
488
|
return NotificationContext.new(
|
|
480
489
|
@version,
|
|
@@ -497,7 +506,8 @@ module Twilio
|
|
|
497
506
|
|
|
498
507
|
##
|
|
499
508
|
# Access the feedback
|
|
500
|
-
# @return [FeedbackList] FeedbackList
|
|
509
|
+
# @return [FeedbackList] if a(n) FeedbackList object was created.
|
|
510
|
+
# @return [FeedbackContext] if a(n) FeedbackContext object was created.
|
|
501
511
|
def feedback
|
|
502
512
|
FeedbackContext.new(
|
|
503
513
|
@version,
|
|
@@ -266,6 +266,8 @@ module Twilio
|
|
|
266
266
|
'sid' => payload['sid'],
|
|
267
267
|
'price' => payload['price'].to_f,
|
|
268
268
|
'uri' => payload['uri'],
|
|
269
|
+
'encryption_type' => payload['encryption_type'],
|
|
270
|
+
'encryption_details' => payload['encryption_details'],
|
|
269
271
|
}
|
|
270
272
|
|
|
271
273
|
# Context
|
|
@@ -330,6 +332,14 @@ module Twilio
|
|
|
330
332
|
@properties['uri']
|
|
331
333
|
end
|
|
332
334
|
|
|
335
|
+
def encryption_type
|
|
336
|
+
@properties['encryption_type']
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
def encryption_details
|
|
340
|
+
@properties['encryption_details']
|
|
341
|
+
end
|
|
342
|
+
|
|
333
343
|
##
|
|
334
344
|
# Fetch a RecordingInstance
|
|
335
345
|
# @return [RecordingInstance] Fetched RecordingInstance
|