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
@With(Compress.class) | |
public class Application extends Controller { | |
public static void index() { | |
render();//response will be gzipped | |
} | |
} |
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
public class CustomerIOAdapter | |
{ | |
private static final String CUSTOMER_IO_SITE_ID = "site-id"; | |
private static final String CUSTOMER_IO_API_KEY = "api-key"; | |
public void sendEvent(String id, String eventName, Map<String, Object> map) throws IOException | |
{ | |
HttpPost request = new HttpPost("/api/v1/customers/" + id + "/events"); |