Last active
August 29, 2015 14:15
-
-
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)
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
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