Skip to content

Instantly share code, notes, and snippets.

@jngnyc
Created May 9, 2017 15:02
Show Gist options
  • Save jngnyc/41a7c296ff923a6fa7bbdfdd6c852dee to your computer and use it in GitHub Desktop.
Save jngnyc/41a7c296ff923a6fa7bbdfdd6c852dee to your computer and use it in GitHub Desktop.
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