Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created August 4, 2016 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwhinnery/6de64b616cb75027001ee2bdba7033d1 to your computer and use it in GitHub Desktop.
Save kwhinnery/6de64b616cb75027001ee2bdba7033d1 to your computer and use it in GitHub Desktop.
// Install the Java helper library from twilio.com/docs/java/install
import org.joda.time.LocalDate;
import com.twilio.rest.Twilio;
import com.twilio.rest.resource.api.v2010.account.call.FeedbackSummary;
public class Example {
// Find your Account Sid and Token at twilio.com/user/account
public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
public static final String AUTH_TOKEN = "your_auth_token";
public static void main(String[] args) {
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
FeedbackSummary summary = FeedbackSummary
.create(LocalDate.parse("2014-06-01"), LocalDate.parse("2014-06-30"))
.setIncludeSubaccounts(true)
.setStatusCallback("http://www.example.com/feedback")
.execute();
System.out.println(summary.getStatus());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment