public
Created

Calling Big Huge Thesaurus's API with jQuery

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14
$.ajax({
url : "http://words.bighugelabs.com/api/2/youapikey/" + word + "/json?callback=?",
dataType : 'json',
complete : function(jqXHR, textStatus) {
if (textStatus == 'parsererror') {
// Did not find any synonyms
alert("404 error because no synonyms exist for this word");
}
},
success : function(data) {
// Found synonyms
alert(data);
}
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.