Skip to content

Commit 1f48883

Browse files
committed
Create participant and unique Naming
1 parent 927b33b commit 1f48883

10 files changed

+15
-16
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
curl -XPOST https://twilio.com/Proxy/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers.json \
1+
curl -XPOST https://api.twilio.com/Proxy/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers.json \
22
-d "Sid=PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
33
-u 'your_account_sid:your_auth_token'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
curl -XPOST https://twilio.com/Proxy/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers \
1+
curl -XPOST https://api.twilio.com/Proxy/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers \
22
-d "Sid=PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
33
-u 'your_account_sid:your_auth_token'

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ const authToken = 'your_auth_token';
55

66
const client = require('twilio')(accountSid, authToken);
77

8-
client.preview.proxy
8+
client.proxy
99
.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
1010
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
1111
.participants.create({
1212
identifier: '+15558675309',
13-
friendly_name: 'Alice',
13+
unique_name: 'Alice',
1414
})
1515
.then(response => {
1616
console.log(response);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Get the Node helper library from https://twilio.com/docs/libraries/csharp
22
using System;
33
using Twilio;
4-
using Twilio.Rest.Preview.Proxy.Service.Session;
4+
using Twilio.Rest.Proxy.Service.Session;
55

66
class Example
77
{

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
// Initialize the client
99
$client = new Client($sid, $token);
1010
$session = $client
11-
->preview
1211
->proxy
1312
->services("KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
1413
->sessions("KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
1514
->participants->create(
1615
array(
1716
"identifier" => "+15558675309",
18-
"friendlyName" => "Alice"
17+
"uniqueName" => "Alice"
1918
)
2019
);
2120

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
# Initialize Twilio Client
99
client = Twilio::REST::Client.new account_sid, auth_token
1010

11-
participant = client.preview.proxy
11+
participant = client.proxy
1212
.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
1313
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
1414
.participants.create(
1515
identifier: '+15558675309',
16-
friendly_name: 'Alice'
16+
unique_name: 'Alice'
1717
)
1818

1919
puts participant.sid

proxy/quickstart/create-participant/create-participant.6.x.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
client = Client(account, token)
99

10-
participant = client.preview.proxy \
10+
participant = client.proxy \
1111
.services("KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
1212
.sessions("KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
13-
.participants.create(identifier="+15558675309", friendly_name="Alice")
13+
.participants.create(identifier="+15558675309", unique_name="Alice")

proxy/quickstart/create-participant/create-participant.7.x.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Get the Node helper library from https://twilio.com/docs/libraries/java
22
import com.twilio.Twilio;
3-
import com.twilio.rest.preview.proxy.service.session.Participant;
3+
import com.twilio.rest.proxy.service.session.Participant;
44

55
public class Example {
66
// Get your Account SID and Auth Token from https://twilio.com/console
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
curl -XPOST https://preview.twilio.com/Proxy/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants.json \
1+
curl -XPOST https://api.twilio.com/Proxy/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants.json \
22
-d "Identifier=+15558675309" \
3-
-d "FriendlyName=Alice" \
3+
-d "UniqueName=Alice" \
44
-u 'your_account_sid:your_auth_token'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
curl -XPOST https://preview.twilio.com/Proxy/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants \
1+
curl -XPOST https://api.twilio.com/Proxy/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants \
22
-d "Identifier=+15558675309" \
3-
-d "FriendlyName=Alice" \
3+
-d "UniqueName=Alice" \
44
-u 'your_account_sid:your_auth_token'

0 commit comments

Comments
 (0)