Skip to content

Instantly share code, notes, and snippets.

@ddailey
Created March 2, 2012 22:30
Show Gist options
  • Save ddailey/1961903 to your computer and use it in GitHub Desktop.
Save ddailey/1961903 to your computer and use it in GitHub Desktop.
jQuery get-decision call
1 $(document).ready(function() {
2 $.ajax({
3 url:"http://mycompany.conductrics.net/mpath/api",
4 data: {
5 "verb": "get-decision",
6 "decision-point": "home-page",
7 "agent": "sample-agent-1"
8 },
9 dataType:"jsonp",
10 success: function(mpathResponse) {
11 // do something with mPath's decision
12 }
13 });
14 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment