Package com.twilio.sdk.resource.list

Examples of com.twilio.sdk.resource.list.UsageTriggerList


   *
   * @param filters the filters
   * @return the usage records
   */
  public UsageTriggerList getUsageTriggers(Map<String, String> filters) {
    UsageTriggerList list = new UsageTriggerList(this.getClient(), filters);
    list.setRequestAccountSid(this.getRequestAccountSid());
    return list;
  }
View Full Code Here


public class UsageTriggerTest extends BasicRequestTester {

    @Test
    public void testListingUsageTrigger() throws Exception {
        setExpectedServerAnswer("usagetriggertestanswer.xml");
        UsageTriggerList usageTriggers = client.getAccount().getUsageTriggers();
        Iterator<UsageTrigger> usageRecordIterator = usageTriggers.iterator();

        UsageTrigger current;
        current = usageRecordIterator.next();
        assertEquals(current.getCallbackMethod(), "POST");
        assertEquals(current.getCallbackUrl(), "http://www.google.com");
View Full Code Here

TOP

Related Classes of com.twilio.sdk.resource.list.UsageTriggerList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.