Skip to content

Instantly share code, notes, and snippets.

@n2p5
Last active August 29, 2015 14:15
Show Gist options
  • Save n2p5/30e36f9595cf9ae9ca0c to your computer and use it in GitHub Desktop.
Save n2p5/30e36f9595cf9ae9ca0c to your computer and use it in GitHub Desktop.
pull name and email from parse and send to zopim (no error checking)
var currentUser = {
'firstName': Parse.User._currentUser.get("firstName"),
'lastName': Parse.User._currentUser.get("lastName"),
'email' : Parse.User._currentUser.getEmail(),
'fullName': function() {return this.firstName + " " + this.lastName}
};
$zopim.livechat.setName(currentUser.fullName());
$zopim.livechat.setEmail(currentUser.email);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment