com.twilio.example.resource.CallDeleterExample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twilio-java-sdk Show documentation
Show all versions of twilio-java-sdk Show documentation
Release Candidate for Next-Gen Twilio Java Helper Library
The newest version!
package com.twilio.example.resource;
import com.twilio.sdk.Twilio;
import com.twilio.sdk.deleter.api.v2010.account.CallDeleter;
import com.twilio.sdk.exception.ApiException;
/**
* Call Deletion example.
*/
public class CallDeleterExample {
@SuppressWarnings("checkstyle:javadocmethod")
public static void main(final String[] args) {
Twilio.init("AC123", "AUTH TOKEN");
try {
CallDeleter deleter = new CallDeleter("AC123", "CA123");
deleter.execute();
} catch (ApiException e) {
System.err.println("womp womp");
System.exit(1);
}
System.out.println("Deleted");
}
}