import org.junit.Test; /** * Test usage example. This call could do something like trigger IFTTT when a new premium user signs up * which in turn you could use to send a notification to you mobile, send a welcome email, tweet, etc. */ public class IFTTT_Test { @Test public void notifyNewUser(){ final int PAYMENT_PLAN_TIER = 5; final int NUMBER_OF_USERS_NOW = 1234; final String event = "new_user_signup"; final String key = "b2QVdqYs3PXo6aL7OyLgKb"; // your own key here final String myValue1 = "myNewUser@example.com"; final String myValue2 = PAYMENT_PLAN_TIER; final String myValue3 = NUMBER_OF_USERS_NOW; new IFTTT().trigger(event, key, myValue1, myValue2, myValue3); } }