Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@looneym
Last active February 22, 2017 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save looneym/d43ba364c458eff29a083d2d8243be91 to your computer and use it in GitHub Desktop.
Save looneym/d43ba364c458eff29a083d2d8243be91 to your computer and use it in GitHub Desktop.
Base scoped token API operations
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);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment