Skip to content

Commit 14f13c2

Browse files
committed
Remove preview references for proxy
1 parent 4c5334e commit 14f13c2

30 files changed

+82
-195
lines changed

proxy/quickstart/add-phone-number/add-phone-number.3.x.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
// NOTE: This example uses the ALPHA release of the next generation Twilio
2-
// helper library - for more information on how to download and install this version, visit
3-
// https://www.twilio.com/docs/libraries/node#accessing-preview-twilio-features
4-
5-
// These consts are your accountSid and authToken from https://www.twilio.com/console
1+
// Get the Node helper library from https://twilio.com/docs/libraries/node
2+
// Get your Account SID and Auth Token from https://twilio.com/console
63
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
74
const authToken = 'your_auth_token';
85

96
const client = require('twilio')(accountSid, authToken);
107

11-
client.preview.proxy
8+
client.proxy
129
.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
1310
.phoneNumbers.create({ sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' })
1411
.then(response => {

proxy/quickstart/add-phone-number/add-phone-number.5.x.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
// NOTE: This example uses the ALPHA release of the next generation Twilio
2-
// helper library - for more information on how to download and install this version, visit
3-
// https://www.twilio.com/docs/libraries/csharp#accessing-preview-twilio-features
1+
// Get the Node helper library from https://twilio.com/docs/libraries/csharp
42
using System;
53
using Twilio;
6-
using Twilio.Rest.Preview.Proxy.Service;
4+
using Twilio.Rest.Proxy.Service;
75

86
class Example
97
{
108
static void Main(string[] args)
119
{
12-
// Find your Account Sid, Auth Token and Proxy Service sid at twilio.com/console
10+
// Get your Account SID and Auth Token from https://twilio.com/console
1311
const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
1412
const string authToken = "your_auth_token";
1513
const string proxyServiceSid = "KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

proxy/quickstart/add-phone-number/add-phone-number.5.x.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
<?php
2-
// NOTE: This example uses the ALPHA release of the next generation Twilio
3-
// helper library - for more information on how to download and install this version, visit
4-
// https://www.twilio.com/docs/libraries/php#accessing-preview-twilio-features
5-
6-
// This line loads the library
2+
// Get the Node helper library from https://twilio.com/docs/libraries/php
73
require './vendor/autoload.php';
84
use Twilio\Rest\Client;
9-
// Find your Account Sid and Token at twilio.com/user/account
5+
// Get your Account SID and Auth Token from https://twilio.com/console
106
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
117
$token = "your_auth_token";
128
// Initialize the client
139
$client = new Client($sid, $token);
1410
$phoneNumber = $client
15-
->preview
1611
->proxy
1712
->services("KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
1813
->phoneNumbers->create(

proxy/quickstart/add-phone-number/add-phone-number.5.x.rb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
# NOTE: This example uses the ALPHA release of the next generation Twilio
2-
# helper library - for more information on how to download and install
3-
# this version, visit
4-
# https://www.twilio.com/docs/libraries/ruby#installation-nextgen
1+
# Get the Node helper library from https://twilio.com/docs/libraries/ruby
52
require 'twilio-ruby'
63

7-
# Get your Account SID and Auth Token from twilio.com/console
4+
# Get your Account SID and Auth Token from https://twilio.com/console
85
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
96
auth_token = 'your_auth_token'
107

118
# Initialize Twilio Client
129
client = Twilio::REST::Client.new account_sid, auth_token
1310

14-
phone_number = client.preview
15-
.proxy
11+
phone_number = client.proxy
1612
.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
1713
.phone_numbers
1814
.create(sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')

proxy/quickstart/add-phone-number/add-phone-number.6.x.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
# NOTE: This example uses the ALPHA release of the next generation Twilio
2-
# helper library - for more information on how to download and install this
3-
# version, visit
4-
# https://www.twilio.com/docs/libraries/python#accessing-preview-twilio-features
1+
# Get the Node helper library from https://twilio.com/docs/libraries/python
52
from twilio.rest import Client
63

7-
# Account SID and Auth Token are found in the console:
8-
# twilio.com/console
4+
# Get your Account SID and Auth Token from https://twilio.com/console
95
account = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
106
token = "your_auth_token"
11-
127
client = Client(account, token)
138

14-
phone_number = client.preview \
15-
.proxy \
9+
phone_number = client.proxy \
1610
.services("KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
1711
.phone_numbers \
1812
.create(sid="PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")

proxy/quickstart/add-phone-number/add-phone-number.7.x.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
// NOTE: This example uses the ALPHA release of the next generation Twilio
2-
// helper library - for more information on how to download and install this version, visit
3-
// https://www.twilio.com/docs/libraries/java#accessing-preview-twilio-features
4-
1+
// Get the Node helper library from https://twilio.com/docs/libraries/java
52
import com.twilio.Twilio;
6-
import com.twilio.rest.preview.proxy.service.PhoneNumber;
3+
import com.twilio.rest.proxy.service.PhoneNumber;
74

85
public class Example {
9-
// Find your Account Sid and Token at twilio.com/user/account
6+
// Get your Account SID and Auth Token from https://twilio.com/console
107
public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
118
public static final String AUTH_TOKEN = "your_auth_token";
129

proxy/quickstart/create-participant/create-participant.3.x.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
// NOTE: This example uses the ALPHA release of the next generation Twilio
2-
// helper library - for more information on how to download and install this version, visit
3-
// https://www.twilio.com/docs/libraries/node#accessing-preview-twilio-features
4-
5-
// These consts are your accountSid and authToken from https://www.twilio.com/console
1+
// Get the Node helper library from https://twilio.com/docs/libraries/node
2+
// Get your Account SID and Auth Token from https://twilio.com/console
63
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
74
const authToken = 'your_auth_token';
85

96
const client = require('twilio')(accountSid, authToken);
107

11-
client.preview.proxy
8+
client.proxy
129
.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
1310
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
1411
.participants.create({

proxy/quickstart/create-participant/create-participant.5.x.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
// NOTE: This example uses the ALPHA release of the next generation Twilio
2-
// helper library - for more information on how to download and install this version, visit
3-
// https://www.twilio.com/docs/libraries/csharp#accessing-preview-twilio-features
4-
1+
// Get the Node helper library from https://twilio.com/docs/libraries/csharp
52
using System;
63
using Twilio;
7-
using Twilio.Rest.Preview.Proxy.Service.Session;
4+
using Twilio.Rest.Proxy.Service.Session;
85

96
class Example
107
{
118
static void Main(string[] args)
129
{
13-
// Find your Account Sid, Auth Token and Proxy Service sid at twilio.com/console
10+
// Get your Account SID and Auth Token from https://twilio.com/console
1411
const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
1512
const string authToken = "your_auth_token";
1613
const string proxyServiceSid = "KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

proxy/quickstart/create-participant/create-participant.5.x.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
<?php
2-
// NOTE: This example uses the ALPHA release of the next generation Twilio
3-
// helper library - for more information on how to download and install this version, visit
4-
// https://www.twilio.com/docs/libraries/php#accessing-preview-twilio-features
5-
6-
// This line loads the library
2+
// Get the Node helper library from https://twilio.com/docs/libraries/php
73
require './vendor/autoload.php';
84
use Twilio\Rest\Client;
9-
// Find your Account Sid and Token at twilio.com/user/account
5+
// Get your Account SID and Auth Token from https://twilio.com/console
106
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
117
$token = "your_auth_token";
128
// Initialize the client
139
$client = new Client($sid, $token);
1410
$session = $client
15-
->preview
1611
->proxy
1712
->services("KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
1813
->sessions("KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")

proxy/quickstart/create-participant/create-participant.5.x.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
# NOTE: This example uses the ALPHA release of the next generation Twilio
2-
# helper library - for more information on how to download and install this
3-
# version, visit
4-
# https://www.twilio.com/docs/libraries/ruby#installation-nextgen
1+
# Get the Node helper library from https://twilio.com/docs/libraries/ruby
52
require 'twilio-ruby'
63

7-
# Get your Account SID and Auth Token from twilio.com/console
4+
# Get your Account SID and Auth Token from https://twilio.com/console
85
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
96
auth_token = 'your_auth_token'
107

118
# Initialize Twilio Client
129
client = Twilio::REST::Client.new account_sid, auth_token
1310

14-
participant = client.preview.proxy
11+
participant = client.proxy
1512
.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
1613
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
1714
.participants.create(

0 commit comments

Comments
 (0)