Created
August 4, 2016 14:57
-
-
Save kwhinnery/6de64b616cb75027001ee2bdba7033d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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