Skip to content

Instantly share code, notes, and snippets.

@jamesvidler
Created September 23, 2019 20:16
Show Gist options
  • Save jamesvidler/f11c0ed0e2887b3f4ac4a0fe7c7fc928 to your computer and use it in GitHub Desktop.
Save jamesvidler/f11c0ed0e2887b3f4ac4a0fe7c7fc928 to your computer and use it in GitHub Desktop.
An example of calling the Search API to get auto-complete results
Agility.Search.AutoComplete({
query: 'agility',
languageCode: 'en-ca', //optional
domain: 'www.site.com', //optional
category: 'product', // optional
top: 100, //optional
fuzzy: true //optional
}).success(function(resp){
//success
}).error(function(err){
//error
}).always(function(){
//always
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment