Package com.twilio.sdk.resource.factory

Examples of com.twilio.sdk.resource.factory.UsageTriggerFactory


    @Test
    public void testCreateUsageTrigger() throws Exception {
        setExpectedServerAnswer("createusagetriggerresponse.xml");
        Account mainAccount = client.getAccount();
        UsageTriggerFactory usageTriggerFactory = mainAccount.getUsageTriggerFactory();
        HashMap<String, String> trigger = new HashMap<String, String>();
        trigger.put("FriendlyName", "blah");
        trigger.put("UsageCategory", "sms");
        trigger.put("TriggerValue", "10");
        trigger.put("CallbackUrl", "http://www.domain.net");
        UsageTrigger usageTrigger = usageTriggerFactory.create(trigger);
        assertEquals(usageTrigger.getFriendlyName(), "blah");
    }
View Full Code Here

TOP

Related Classes of com.twilio.sdk.resource.factory.UsageTriggerFactory

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.