Skip to content

Commit 4b33a1a

Browse files
mcelicalderondprothero
authored andcommitted
Merge pull request TwilioDevEd#156 from TwilioDevEd/upgrade-java-rc-29
Bump twilio-java to RC-29
1 parent 7cfc7b7 commit 4b33a1a

File tree

369 files changed

+610
-611
lines changed

Some content is hidden

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

369 files changed

+610
-611
lines changed

guides/voice/record-calls-guide/record-outgoing-call/example-1.7.x.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ public class Example {
1515
public static void main(String[] args) throws URISyntaxException {
1616
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
1717

18-
Call call = Call.create(
18+
Call call = Call.creator(
1919
new PhoneNumber("+14155551212"),
2020
new PhoneNumber("+15017250604"),
2121
new URI("http://demo.twilio.com/docs/voice.xml")
2222
)
2323
.setRecord(true)
24-
.execute();
24+
.create();
2525

2626
System.out.println(call.getSid());
2727
}

ip-messaging/rest/channels/create-channels/create-channels.7.x.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ public static void main(String[] args) {
1313
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
1414

1515
// Create the channel
16-
Channel channel = Channel.create(SERVICE_SID)
16+
Channel channel = Channel.creator(SERVICE_SID)
1717
.setFriendlyName("General")
1818
.setUniqueName("general")
19-
.execute();
19+
.create();
2020

2121
System.out.println(channel.getAttributes());
2222
}

ip-messaging/rest/channels/delete-channels/delete-channels.7.x.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static void main(String[] args) {
1313
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
1414

1515
// Delete the channel
16-
boolean didDelete = Channel.delete(SERVICE_SID, "CHANNEL_SID").execute();
16+
boolean didDelete = Channel.deleter(SERVICE_SID, "CHANNEL_SID").delete();
1717

1818
System.out.println(didDelete);
1919
}

ip-messaging/rest/channels/list-channels/list-channels.7.x.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static void main(String[] args) {
1414
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
1515

1616
// Retrieve the list of channels
17-
ResourceSet<Channel> channels = Channel.read(SERVICE_SID).execute();
17+
ResourceSet<Channel> channels = Channel.reader(SERVICE_SID).read();
1818

1919
for (Channel channel : channels) {
2020
System.out.println(channel.getFriendlyName());

ip-messaging/rest/channels/retrieve-channels/retrieve-channels.7.x.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static void main(String[] args) {
1414
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
1515

1616
// Retrieve the channel
17-
Channel channel = Channel.fetch(SERVICE_SID, CHANNEL_SID).execute();
17+
Channel channel = Channel.fetcher(SERVICE_SID, CHANNEL_SID).fetch();
1818

1919
System.out.println(channel.getFriendlyName());
2020
}

ip-messaging/rest/channels/update-channels/update-channels.7.x.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ public static void main(String[] args) {
1515

1616
// Update the channel
1717
Channel channel = Channel
18-
.update(SERVICE_SID, CHANNEL_SID)
18+
.updater(SERVICE_SID, CHANNEL_SID)
1919
.setFriendlyName("ChannelName")
20-
.execute();
20+
.update();
2121

2222
System.out.println(channel.getFriendlyName());
2323
}

ip-messaging/rest/credentials/create-credentials/create-credentials.7.x.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ public static void main(String[] args) {
1313

1414
// Create a credential
1515
Credential credential = Credential
16-
.create(Credential.PushService.GCM)
16+
.creator(Credential.PushService.GCM)
1717
.setApiKey("XXX")
1818
.setFriendlyName("NAME")
19-
.execute();
19+
.create();
2020

2121
System.out.println(credential.getFriendlyName());
2222
}

ip-messaging/rest/credentials/delete-credentials/delete-credentials.7.x.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static void main(String[] args) {
1313
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
1414

1515
// Delete the credential
16-
boolean didDelete = Credential.delete(CREDENTIAL_SID).execute();
16+
boolean didDelete = Credential.deleter(CREDENTIAL_SID).delete();
1717

1818
System.out.println(didDelete);
1919
}

ip-messaging/rest/credentials/list-credentials/list-credentials.7.x.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static void main(String[] args) {
1313
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
1414

1515
// Retrieve the list of credentials
16-
ResourceSet<Credential> credentials = Credential.read().execute();
16+
ResourceSet<Credential> credentials = Credential.reader().read();
1717

1818
for (Credential credential : credentials) {
1919
System.out.println(credential.getSid());

ip-messaging/rest/credentials/retrieve-credentials/retrieve-credential.7.x.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static void main(String[] args) {
1313
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
1414

1515
// Retrieve the credential
16-
Credential credential = Credential.fetch(CREDENTIAL_SID).execute();
16+
Credential credential = Credential.fetcher(CREDENTIAL_SID).fetch();
1717

1818
System.out.println(credential.getFriendlyName());
1919
}

0 commit comments

Comments
 (0)