Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<script src="https://assets.empathybroker.com/apijs/1.3/empathyuuid.js" type="text/javascript"></script>
<script src="https://assets.empathybroker.com/apijs/1.3/empathysearchempathy.resources.js" type="text/javascript"></script>
<script src="https://assets.empathybroker.com/apijs/1.3/empathyutils.js" type="text/javascript"></script>


LIVE environment resources import

...

Once the library is added to the page, you need to initialize create an instance of the service (It is no longer necessary to call the init() method):

Code Block
languagejs
var empathySearch = new EmpathyBrokerSearch(INSTANCE_ID, ENVIRONMENT).init();

Example

Code Block
languagejs
var empathySearch = new EmpathyBrokerSearch('client-instance-id', 'stag').init();


At this point, you are ready to use the library:

...