Skip to content

Commit

Permalink
Generated and removed the done() call on promises. (twilio#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Dennis authored Feb 14, 2019
1 parent c1707f9 commit ee801f1
Show file tree
Hide file tree
Showing 939 changed files with 1,053 additions and 1,996 deletions.
3 changes: 1 addition & 2 deletions accounts/v1/aws/create-default/create-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ client.accounts.credentials
.create({
credentials: 'AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'
})
.then(aws => console.log(aws.sid))
.done();
.then(aws => console.log(aws.sid));
3 changes: 1 addition & 2 deletions accounts/v1/aws/delete-default/delete-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.accounts.credentials
.aws('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.remove()
.then(aws => console.log(aws.sid))
.done();
.then(aws => console.log(aws.sid));
3 changes: 1 addition & 2 deletions accounts/v1/aws/fetch-default/fetch-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.accounts.credentials
.aws('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(aws => console.log(aws.friendlyName))
.done();
.then(aws => console.log(aws.friendlyName));
3 changes: 1 addition & 2 deletions accounts/v1/aws/update-default/update-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.accounts.credentials
.aws('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.update({friendlyName: 'friendlyName'})
.then(aws => console.log(aws.friendlyName))
.done();
.then(aws => console.log(aws.friendlyName));
3 changes: 1 addition & 2 deletions accounts/v1/public_key/create-default/create-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.accounts.credentials
.publicKey
.create({publicKey: 'publickey'})
.then(public_key => console.log(public_key.sid))
.done();
.then(public_key => console.log(public_key.sid));
3 changes: 1 addition & 2 deletions accounts/v1/public_key/delete-default/delete-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.accounts.credentials
.publicKey('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.remove()
.then(public_key => console.log(public_key.sid))
.done();
.then(public_key => console.log(public_key.sid));
3 changes: 1 addition & 2 deletions accounts/v1/public_key/fetch-default/fetch-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.accounts.credentials
.publicKey('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(public_key => console.log(public_key.friendlyName))
.done();
.then(public_key => console.log(public_key.friendlyName));
3 changes: 1 addition & 2 deletions accounts/v1/public_key/update-default/update-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.accounts.credentials
.publicKey('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.update({friendlyName: 'friendlyName'})
.then(public_key => console.log(public_key.friendlyName))
.done();
.then(public_key => console.log(public_key.friendlyName));
2 changes: 1 addition & 1 deletion api/v2010/account/create-default/create-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.api.accounts.create().then(account => console.log(account.sid)).done();
client.api.accounts.create().then(account => console.log(account.sid));
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.api.accounts.create({friendlyName: 'Submarine'})
.then(account => console.log(account.sid))
.done();
.then(account => console.log(account.sid));
3 changes: 1 addition & 2 deletions api/v2010/account/fetch-default/fetch-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.api.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(account => console.log(account.friendlyName))
.done();
.then(account => console.log(account.friendlyName));
3 changes: 1 addition & 2 deletions api/v2010/account/fetch-example-1/fetch-example-1.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.api.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(account => console.log(account.friendlyName))
.done();
.then(account => console.log(account.friendlyName));
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.api.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(account => console.log(account.friendlyName))
.done();
.then(account => console.log(account.friendlyName));
3 changes: 1 addition & 2 deletions api/v2010/account/update-default/update-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.api.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.update({friendlyName: 'friendlyName'})
.then(account => console.log(account.friendlyName))
.done();
.then(account => console.log(account.friendlyName));
3 changes: 1 addition & 2 deletions api/v2010/account/update-example-1/update-example-1.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.api.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.update({status: 'suspended'})
.then(account => console.log(account.friendlyName))
.done();
.then(account => console.log(account.friendlyName));
3 changes: 1 addition & 2 deletions api/v2010/account/update-example-2/update-example-2.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.api.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.update({status: 'active'})
.then(account => console.log(account.friendlyName))
.done();
.then(account => console.log(account.friendlyName));
3 changes: 1 addition & 2 deletions api/v2010/account/update-example-3/update-example-3.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.api.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.update({status: 'closed'})
.then(account => console.log(account.friendlyName))
.done();
.then(account => console.log(account.friendlyName));
3 changes: 1 addition & 2 deletions api/v2010/add_on_result/delete-default/delete-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.addOnResults('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.remove()
.then(add_on_result => console.log(add_on_result.sid))
.done();
.then(add_on_result => console.log(add_on_result.sid));
3 changes: 1 addition & 2 deletions api/v2010/add_on_result/fetch-default/fetch-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.recordings('REXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.addOnResults('XRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(add_on_result => console.log(add_on_result.sid))
.done();
.then(add_on_result => console.log(add_on_result.sid));
3 changes: 1 addition & 2 deletions api/v2010/address/create-default/create-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ client.addresses
postalCode: 'postalCode',
isoCountry: 'US'
})
.then(address => console.log(address.sid))
.done();
.then(address => console.log(address.sid));
3 changes: 1 addition & 2 deletions api/v2010/address/create-example-1/create-example-1.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ client.addresses
postalCode: '10875',
isoCountry: 'DE'
})
.then(address => console.log(address.sid))
.done();
.then(address => console.log(address.sid));
3 changes: 1 addition & 2 deletions api/v2010/address/create-example/create-example.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ client.addresses
postalCode: '150',
isoCountry: 'AX'
})
.then(address => console.log(address.sid))
.done();
.then(address => console.log(address.sid));
3 changes: 1 addition & 2 deletions api/v2010/address/delete-default/delete-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.addresses('ADXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.remove()
.then(address => console.log(address.sid))
.done();
.then(address => console.log(address.sid));
3 changes: 1 addition & 2 deletions api/v2010/address/fetch-default/fetch-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.addresses('ADXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(address => console.log(address.customerName))
.done();
.then(address => console.log(address.customerName));
3 changes: 1 addition & 2 deletions api/v2010/address/fetch-example-1/fetch-example-1.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.addresses('AD2a0747eba6abf96b7e3c3ff0b4530f6e')
.fetch()
.then(address => console.log(address.customerName))
.done();
.then(address => console.log(address.customerName));
3 changes: 1 addition & 2 deletions api/v2010/address/update-default/update-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.addresses('ADXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.update({friendlyName: 'friendlyName'})
.then(address => console.log(address.customerName))
.done();
.then(address => console.log(address.customerName));
3 changes: 1 addition & 2 deletions api/v2010/address/update-example-1/update-example-1.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.addresses('AD2a0747eba6abf96b7e3c3ff0b4530f6e')
.update({customerName: 'Customer 456', street: '2 Hasselhoff Lane'})
.then(address => console.log(address.customerName))
.done();
.then(address => console.log(address.customerName));
3 changes: 1 addition & 2 deletions api/v2010/application/create-default/create-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.applications.create({friendlyName: 'friendlyName'})
.then(application => console.log(application.sid))
.done();
.then(application => console.log(application.sid));
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ client.applications
voiceUrl: 'http://demo.twilio.com/docs/voice.xml',
friendlyName: 'Phone Me'
})
.then(application => console.log(application.sid))
.done();
.then(application => console.log(application.sid));
3 changes: 1 addition & 2 deletions api/v2010/application/delete-default/delete-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.applications('APXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.remove()
.then(application => console.log(application.sid))
.done();
.then(application => console.log(application.sid));
3 changes: 1 addition & 2 deletions api/v2010/application/fetch-default/fetch-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.applications('APXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(application => console.log(application.friendlyName))
.done();
.then(application => console.log(application.friendlyName));
3 changes: 1 addition & 2 deletions api/v2010/application/fetch-example-1/fetch-example-1.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.applications('AP2a0747eba6abf96b7e3c3ff0b4530f6e')
.fetch()
.then(application => console.log(application.friendlyName))
.done();
.then(application => console.log(application.friendlyName));
3 changes: 1 addition & 2 deletions api/v2010/application/update-default/update-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.applications('APXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.update({friendlyName: 'friendlyName'})
.then(application => console.log(application.friendlyName))
.done();
.then(application => console.log(application.friendlyName));
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ client.applications('AP2a0747eba6abf96b7e3c3ff0b4530f6e')
smsUrl: 'http://demo.twilio.com/docs/sms.xml',
voiceUrl: 'http://demo.twilio.com/docs/voice.xml'
})
.then(application => console.log(application.friendlyName))
.done();
.then(application => console.log(application.friendlyName));
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.incomingPhoneNumbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.assignedAddOns
.create({installedAddOnSid: 'XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'})
.then(assigned_add_on => console.log(assigned_add_on.sid))
.done();
.then(assigned_add_on => console.log(assigned_add_on.sid));
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.incomingPhoneNumbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.assignedAddOns('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.remove()
.then(assigned_add_on => console.log(assigned_add_on.sid))
.done();
.then(assigned_add_on => console.log(assigned_add_on.sid));
3 changes: 1 addition & 2 deletions api/v2010/assigned_add_on/fetch-default/fetch-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const client = require('twilio')(accountSid, authToken);
client.incomingPhoneNumbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.assignedAddOns('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(assigned_add_on => console.log(assigned_add_on.friendlyName))
.done();
.then(assigned_add_on => console.log(assigned_add_on.friendlyName));
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ client.incomingPhoneNumbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.assignedAddOns('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.extensions('XFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(assigned_add_on_extension => console.log(assigned_add_on_extension.friendlyName))
.done();
.then(assigned_add_on_extension => console.log(assigned_add_on_extension.friendlyName));
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.calls
.credentialListMappings
.create({credentialListSid: 'CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'})
.then(auth_calls_credential_list_mapping => console.log(auth_calls_credential_list_mapping.sid))
.done();
.then(auth_calls_credential_list_mapping => console.log(auth_calls_credential_list_mapping.sid));
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.calls
.credentialListMappings('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.remove()
.then(auth_calls_credential_list_mapping => console.log(auth_calls_credential_list_mapping.sid))
.done();
.then(auth_calls_credential_list_mapping => console.log(auth_calls_credential_list_mapping.sid));
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.calls
.credentialListMappings('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(auth_calls_credential_list_mapping => console.log(auth_calls_credential_list_mapping.friendlyName))
.done();
.then(auth_calls_credential_list_mapping => console.log(auth_calls_credential_list_mapping.friendlyName));
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.calls
.ipAccessControlListMappings
.create({ipAccessControlListSid: 'ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'})
.then(auth_calls_ip_access_control_list_mapping => console.log(auth_calls_ip_access_control_list_mapping.sid))
.done();
.then(auth_calls_ip_access_control_list_mapping => console.log(auth_calls_ip_access_control_list_mapping.sid));
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.calls
.ipAccessControlListMappings('ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.remove()
.then(auth_calls_ip_access_control_list_mapping => console.log(auth_calls_ip_access_control_list_mapping.sid))
.done();
.then(auth_calls_ip_access_control_list_mapping => console.log(auth_calls_ip_access_control_list_mapping.sid));
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.calls
.ipAccessControlListMappings('ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(auth_calls_ip_access_control_list_mapping => console.log(auth_calls_ip_access_control_list_mapping.friendlyName))
.done();
.then(auth_calls_ip_access_control_list_mapping => console.log(auth_calls_ip_access_control_list_mapping.friendlyName));
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.registrations
.credentialListMappings
.create({credentialListSid: 'CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'})
.then(auth_registrations_credential_list_mapping => console.log(auth_registrations_credential_list_mapping.sid))
.done();
.then(auth_registrations_credential_list_mapping => console.log(auth_registrations_credential_list_mapping.sid));
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.registrations
.credentialListMappings('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.remove()
.then(auth_registrations_credential_list_mapping => console.log(auth_registrations_credential_list_mapping.sid))
.done();
.then(auth_registrations_credential_list_mapping => console.log(auth_registrations_credential_list_mapping.sid));
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.registrations
.credentialListMappings('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(auth_registrations_credential_list_mapping => console.log(auth_registrations_credential_list_mapping.friendlyName))
.done();
.then(auth_registrations_credential_list_mapping => console.log(auth_registrations_credential_list_mapping.friendlyName));
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.authorizedConnectApps('CNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(authorized_connect_app => console.log(authorized_connect_app.connectAppCompanyName))
.done();
.then(authorized_connect_app => console.log(authorized_connect_app.connectAppCompanyName));
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.authorizedConnectApps('CN47260e643654388faabe8aaa18ea6756')
.fetch()
.then(authorized_connect_app => console.log(authorized_connect_app.connectAppCompanyName))
.done();
.then(authorized_connect_app => console.log(authorized_connect_app.connectAppCompanyName));
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ const client = require('twilio')(accountSid, authToken);

client.availablePhoneNumbers('US')
.fetch()
.then(available_phone_number_country => console.log(available_phone_number_country.countryCode))
.done();
.then(available_phone_number_country => console.log(available_phone_number_country.countryCode));
3 changes: 1 addition & 2 deletions api/v2010/call/create-default/create-default.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ client.calls
to: '+15558675310',
from: '+15017122661'
})
.then(call => console.log(call.sid))
.done();
.then(call => console.log(call.sid));
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ client.calls
to: '+15558675310',
from: '+15017122661'
})
.then(call => console.log(call.sid))
.done();
.then(call => console.log(call.sid));
3 changes: 1 addition & 2 deletions api/v2010/call/create-example-1/create-example-1.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ client.calls
to: '+14155551212',
from: '+15017122661'
})
.then(call => console.log(call.sid))
.done();
.then(call => console.log(call.sid));
3 changes: 1 addition & 2 deletions api/v2010/call/create-example-10/create-example-10.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ client.calls
to: 'sip:[email protected]?hatchkey=4815162342',
from: 'Jack'
})
.then(call => console.log(call.sid))
.done();
.then(call => console.log(call.sid));
3 changes: 1 addition & 2 deletions api/v2010/call/create-example-11/create-example-11.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ client.calls
to: '+123456789',
from: '+987654321'
})
.then(call => console.log(call.sid))
.done();
.then(call => console.log(call.sid));
3 changes: 1 addition & 2 deletions api/v2010/call/create-example-12/create-example-12.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ client.calls
to: 'client:charlie',
from: '+15017122661'
})
.then(call => console.log(call.sid))
.done();
.then(call => console.log(call.sid));
3 changes: 1 addition & 2 deletions api/v2010/call/create-example-13/create-example-13.3.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ client.calls
to: '+14155551212',
from: '+18668675310'
})
.then(call => console.log(call.sid))
.done();
.then(call => console.log(call.sid));
Loading

0 comments on commit ee801f1

Please sign in to comment.