Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import io.intercom.api.Intercom;
- import io.intercom.api.User;
- public class Test {
- public static void main(String[] args){
- Intercom.setToken("super_Secret_token");
- // Create a user
- User user = new User()
- .setEmail("malcolm@serenity.io")
- .setUserId("1")
- .addCustomAttribute(CustomAttribute.newStringAttribute("role", "sergeant"))
- .addCustomAttribute(CustomAttribute.newBooleanAttribute("browncoat", true));
- User created = User.create(user);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement