Skip to content

Instantly share code, notes, and snippets.

@graut
Created March 9, 2016 04:08
Show Gist options
  • Save graut/6ec022cd8161195101ff to your computer and use it in GitHub Desktop.
Save graut/6ec022cd8161195101ff to your computer and use it in GitHub Desktop.
<script>
_agile.create_contact({
"email": "testcustomer@gmail.com",
"first_name": "Test",
"last_name": "New",
"tags":"tag1"
}, { success: function add_note() {
console.log("Done");
_agile.set_email('testcustomer@gmail.com')
_agile.add_note({
"subject": "How to test",
"description": "Running"
}, { success: function(data){
console.log(data);
console.log("contact created");
}, error: function(err){
console.log("data1");
console.log(err);
}
});
}, error: function(data){
console.log("ERROR");
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment