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',

0 commit comments

Comments
 (0)