Skip to content

Instantly share code, notes, and snippets.

@jamesvidler
Last active September 23, 2019 20:13
Show Gist options
  • Save jamesvidler/8a6b63a9bf79eebc03dc90cc934d538a to your computer and use it in GitHub Desktop.
Save jamesvidler/8a6b63a9bf79eebc03dc90cc934d538a to your computer and use it in GitHub Desktop.
How to execute a search query with Agility CMS
Agility.Search.Query({
query: 'agility',
languageCode: 'en-ca', //optional
category: 'product', // optional
domain: 'agilitycms.com', //optional
top: 100, //optional
skip: 0 //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