Skip to content

Instantly share code, notes, and snippets.

@binarylogic
Created January 29, 2015 20:03
Show Gist options
  • Save binarylogic/df9db65573af9c4f69d9 to your computer and use it in GitHub Desktop.
Save binarylogic/df9db65573af9c4f69d9 to your computer and use it in GitHub Desktop.
Simple jquery example
$.ajax({
url: 'https://api.wit.ai/message',
data: {
'q': 'I need 4 tickets',
'access_token' : 'MY_WIT_TOKEN'
},
dataType: 'jsonp',
method: 'GET',
success: function(response) {
console.log("success!", response);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment