...
Parameter | Description | Data Type | Mandatory |
---|---|---|---|
terms | The query typed by the user | String | Yes |
maxitems | Max number of links to be retrieved | Integer | No |
scope | This parameter is used for separate analytic data between two or more different scenarios | String | No |
options | Object that may contain information about filters and other required data for example: scope, user and session. | Object | No |
callback | Function that will be executed after sending data | Function | No |
Notes:
|
...
Code Block | ||
---|---|---|
| ||
var options = { lang:'en', scope:'desktop', user:'8212e2d6-fcbd-4879-9878-b06299ee785e', session: '3087bd26-2e69-4e84-84c3-e130e06e4888' } empathySearch.links('term', 10, 'testscope', options, function(data){ //the data object will contain link results alert('test'); }); |
...