Created
May 9, 2017 15:02
-
-
Save jngnyc/41a7c296ff923a6fa7bbdfdd6c852dee to your computer and use it in GitHub Desktop.
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 success = function(message){ | |
alert("success calling rokomobi.setUser "+ JSON.stringify(message)); | |
console.log(message) | |
var param = { | |
propertyName: "phone", | |
propertyValue: getStorage("contact_phone") | |
}; | |
rokomobi.setUserCustomProperty(param, function(message){ | |
alert("Success calling setUserCustomProperty "+ JSON.stringify(message)); | |
console.log(message) | |
}, function(message){ | |
alert("Error calling setUserCustomProperty "+ JSON.stringify(message)); | |
console.log(message) | |
}); | |
}; | |
var failure = function(message){ | |
alert("Error calling rokomobi.setUser "+ JSON.stringify(message)); | |
console.log(message) | |
}; | |
var dictionary = { | |
userName: getStorage("email_address"), | |
email: getStorage("email_address"), | |
name: getStorage("first_name") | |
} | |
rokomobi.setUser(dictionary, success, failure); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment