Skip to content

Commit 28fe249

Browse files
author
Dorian Marié
committed
add parenthesis to all the new client calls
1 parent 43b39fd commit 28fe249

File tree

170 files changed

+170
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+170
-170
lines changed

fax/instance-get-example/instance-get-example.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use_ssl: uri.scheme == 'https') do |http|
1212

1313
request = Net::HTTP::Get.new uri.request_uri
14-
request.basic_auth account_sid, auth_token
14+
request.basic_auth(account_sid, auth_token)
1515

1616
response = http.request request
1717

fax/instance-post-example/instance-post-example.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use_ssl: uri.scheme == 'https') do |http|
1212

1313
request = Net::HTTP::Post.new uri.request_uri
14-
request.basic_auth account_sid, auth_token
14+
request.basic_auth(account_sid, auth_token)
1515
request.body = URI.encode_www_form(Status: 'canceled')
1616

1717
response = http.request request

fax/list-get-example/list-get-example.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use_ssl: uri.scheme == 'https') do |http|
1212

1313
request = Net::HTTP::Get.new uri.request_uri
14-
request.basic_auth account_sid, auth_token
14+
request.basic_auth(account_sid, auth_token)
1515

1616
response = http.request request
1717

fax/sip-send/example-1/example-1.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use_ssl: uri.scheme == 'https') do |http|
1212

1313
request = Net::HTTP::Post.new uri.request_uri
14-
request.basic_auth account_sid, auth_token
14+
request.basic_auth(account_sid, auth_token)
1515
request.body = URI.encode_www_form(To: 'sip:kate@example.com',
1616
From: 'Jack',
1717
MediaUrl: 'https://www.twilio.com/docs/documents/25/justthefaxmaam.pdf')

fax/sip-send/example-2/example-2.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use_ssl: uri.scheme == 'https') do |http|
1212

1313
request = Net::HTTP::Post.new uri.request_uri
14-
request.basic_auth account_sid, auth_token
14+
request.basic_auth(account_sid, auth_token)
1515
request.body = URI.encode_www_form(To: 'sip:kate@example.com',
1616
From: 'Jack',
1717
MediaUrl: 'https://www.twilio.com/docs/documents/25/justthefaxmaam.pdf',

fax/sip-send/example-3/example-3.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
1111
request = Net::HTTP::Post.new uri.request_uri
12-
request.basic_auth account_sid, auth_token
12+
request.basic_auth(account_sid, auth_token)
1313
to = 'sip:kate@example.com?hatchkey=4815162342;transport=TCP'
1414
media_url = 'https://www.twilio.com/docs/documents/25/justthefaxmaam.pdf'
1515
request.body = URI.encode_www_form(to: to, from: 'Jack', media_url: media_url)

guides/voice/record-calls-guide/record-outgoing-call/example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
call = @client.account.calls.create(url: 'http://demo.twilio.com/docs/voice.xml',
1111
to: '+14155551212',

lookups/lookup-get-basic-example-1/lookup-get-basic-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Get your Account Sid and Auth Token from twilio.com/user/account
55
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
66
auth_token = 'your_auth_token'
7-
@client = Twilio::REST::LookupsClient.new account_sid, auth_token
7+
@client = Twilio::REST::LookupsClient.new(account_sid, auth_token)
88

99
number = @client.phone_numbers.get('+15108675310', type: 'carrier')
1010

lookups/lookup-get-basic-example-2/lookup-get-basic-example-2.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Get your Account Sid and Auth Token from twilio.com/user/account
55
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
66
auth_token = 'your_auth_token'
7-
client = Twilio::REST::LookupsClient.new account_sid, auth_token
7+
client = Twilio::REST::LookupsClient.new(account_sid, auth_token)
88

99
number = client.phone_numbers
1010
.get('(510) 867-5310', country_code: 'US', type: 'carrier')

monitor/events/list-get-example-actorsid-resourcesid-error/list-get-example-actorsid-resourcesid-error.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Get your Account Sid and Auth Token from twilio.com/user/account
55
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
66
auth_token = 'your_auth_token'
7-
@client = Twilio::REST::MonitorClient.new account_sid, auth_token
7+
@client = Twilio::REST::MonitorClient.new(account_sid, auth_token)
88

99
@params = {
1010
actor_sid: 'USd0afd67cddff4ec7cb0022771a203cb1',

monitor/events/list-get-example-resourcesid-filter/list-get-example-resourcesid-filter.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Get your Account Sid and Auth Token from twilio.com/user/account
55
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
66
auth_token = 'your_auth_token'
7-
@client = Twilio::REST::MonitorClient.new account_sid, auth_token
7+
@client = Twilio::REST::MonitorClient.new(account_sid, auth_token)
88

99
@params = {
1010
resource_sid: 'PN4aa51b930717ea83c91971b86d99018f'

quickstart/ruby/sms/example-1/send_notifications.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxx'
66
auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyy'
7-
client = Twilio::REST::Client.new account_sid, auth_token
7+
client = Twilio::REST::Client.new(account_sid, auth_token)
88

99
from = '+15551234567' # Your Twilio number
1010
to = '+15555555555' # Your mobile phone number

quickstart/ruby/sms/example-1/send_notifications.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxx'
66
auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyy'
7-
client = Twilio::REST::Client.new account_sid, auth_token
7+
client = Twilio::REST::Client.new(account_sid, auth_token)
88

99
from = '+15551234567' # Your Twilio number
1010
to = '+15555555555' # Your mobile phone number

quickstart/ruby/sms/example-2/send_notifications.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxx'
66
auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyy'
7-
client = Twilio::REST::Client.new account_sid, auth_token
7+
client = Twilio::REST::Client.new(account_sid, auth_token)
88

99
from = '+15551234567' # Your Twilio number
1010
to = '+15555555555' # Your mobile phone number

quickstart/ruby/sms/example-2/send_notifications.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxx'
66
auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyy'
7-
client = Twilio::REST::Client.new account_sid, auth_token
7+
client = Twilio::REST::Client.new(account_sid, auth_token)
88

99
from = '+15551234567' # Your Twilio number
1010
to = '+15555555555' # Your mobile phone number

quickstart/ruby/voice/example-1-make-call/outgoing_call.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
auth_token = 'your_auth_token'
66

77
# set up a client to talk to the Twilio REST API
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
call = @client.calls.create(
1111
to: "+15558675310",

rest/accounts/instance-get-example-1/instance-get-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Get an object from its sid. If you do not have a sid,
1111
# check out the list resource examples on this page

rest/accounts/instance-post-example-1/instance-post-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Get an object from its sid. If you do not have a sid,
1111
# check out the list resource examples on this page

rest/accounts/instance-post-example-2/instance-post-example-2.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Get an object from its sid. If you do not have a sid,
1111
# check out the list resource examples on this page

rest/accounts/instance-post-example-3/instance-post-example-3.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Get an object from its sid. If you do not have a sid,
1111
# check out the list resource examples on this page

rest/accounts/list-get-example-1/list-get-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Loop over accounts and print out a property for each one
1111
@client.accounts.list.each do |account|

rest/accounts/list-get-example-2/list-get-example-2.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Loop over accounts and print out a property for each one
1111
@client.accounts.list(

rest/addresses/instance-get-example-1/instance-get-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Get an object from its sid. If you do not have a sid,
1111
# check out the list resource examples on this page

rest/addresses/instance-post-example-1/instance-post-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Get an object from its sid. If you do not have a sid,
1111
# check out the list resource examples on this page

rest/addresses/instance-post-example-1/instance-post-example-1.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
auth_token = 'your_auth_token'
77

88
# Initialize Twilio Client
9-
@client = Twilio::REST::Client.new account_sid, auth_token
9+
@client = Twilio::REST::Client.new(account_sid, auth_token)
1010

1111
# Get an object from its sid. If you do not have a sid,
1212
# check out the list resource examples on this page

rest/addresses/list-dependent-pns-example-1/list-dependent-pns-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Loop over addresses and print out a property for each one
1111
@address = @client.account.addresses.get('AD2a0747eba6abf96b7e3c3ff0b4530f6e')

rest/addresses/list-get-example-1/list-get-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Loop over addresses and print out a property for each one
1111
@client.account.addresses.list.each do |address|

rest/addresses/list-get-example-2/list-get-example-2.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account SID and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Loop over addresses and print out a property for each one
1111
@client.account.addresses.list(customer_name: 'Customer 123').each do |address|

rest/addresses/list-post-example-1/list-post-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Create a new address
1111
@address = @client.account.addresses.create(

rest/applications/instance-get-example-1/instance-get-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Get an object from its sid. If you do not have a sid,
1111
# check out the list resource examples on this page

rest/applications/instance-post-example-1/instance-post-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Get an object from its sid. If you do not have a sid,
1111
# check out the list resource examples on this page

rest/applications/list-get-example-1/list-get-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Loop over apps and print out a property for each one
1111
@client.account.applications.list.each do |app|

rest/applications/list-get-example-2/list-get-example-2.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Loop over apps and print out a property for each one
1111
@client.account.applications.list(friendly_name: 'MyApp').each do |app|

rest/applications/list-post-example-1/list-post-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
app = @client.account.applications.create(friendly_name: 'Phone Me',
1111
voice_url: 'http://demo.twilio.com/docs/voice.xml',

rest/authorized-connect-apps/instance-get-example-1/instance-get-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
client = Twilio::REST::Client.new account_sid, auth_token
8+
client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Get an object from its sid. If you do not have a sid,
1111
# check out the list resource examples on this page

rest/authorized-connect-apps/list-get-example-1/list-get-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
# Loop over authorized_apps and print out a property for each one
1111
@client.account.authorized_connect_apps.list.each do |authorized_app|

rest/available-phone-numbers/local-advanced-example-1/local-get-advanced-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::Client.new account_sid, auth_token
8+
@client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
@numbers = @client.account.available_phone_numbers
1111
.get('US')

rest/available-phone-numbers/local-basic-example-1/local-get-basic-example-1.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
client = Twilio::REST::Client.new account_sid, auth_token
8+
client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
numbers = client.account
1111
.available_phone_numbers.get('US')

rest/available-phone-numbers/local-basic-example-2/local-get-basic-example-2.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
client = Twilio::REST::Client.new account_sid, auth_token
8+
client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
numbers = client.account
1111
.available_phone_numbers.get('US')

rest/available-phone-numbers/local-basic-example-3/local-get-basic-example-3.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
client = Twilio::REST::Client.new account_sid, auth_token
8+
client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
numbers = client.account
1111
.available_phone_numbers.get('US')

rest/available-phone-numbers/local-basic-example-4/local-get-basic-example-4.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
client = Twilio::REST::Client.new account_sid, auth_token
8+
client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
numbers = client.account
1111
.available_phone_numbers.get('US')

rest/available-phone-numbers/local-basic-example-5/local-get-basic-example-5.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
client = Twilio::REST::Client.new account_sid, auth_token
8+
client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
numbers = client.account
1111
.available_phone_numbers.get('GB')

rest/available-phone-numbers/local-basic-example-6/local-get-basic-example-6.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
client = Twilio::REST::Client.new account_sid, auth_token
8+
client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
numbers = client.account
1111
.available_phone_numbers.get('GB')

rest/available-phone-numbers/local-basic-example-7/local-get-basic-example-7.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Get your Account Sid and Auth Token from twilio.com/user/account
66
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
77
auth_token = 'your_auth_token'
8-
client = Twilio::REST::Client.new account_sid, auth_token
8+
client = Twilio::REST::Client.new(account_sid, auth_token)
99

1010
numbers = client.account
1111
.available_phone_numbers.get('US')

0 commit comments

Comments
 (0)