...
STAGING environment resources import
Not minified
Code Block |
---|
|
<script src="https://assets.empathybroker.com/apijs/1.3/empathyuuid.js" type="text/javascript"></script>
<script src="https://assets.empathybroker.com/apijs/1.3/empathyutils.js" type="text/javascript"></script>
<script src="https://assets.empathybroker.com/apijs/1.3/empathytag.js" type="text/javascript"></script> |
...
Code Block |
---|
|
<script src="https://assets.empathybroker.com/apijs/1.3/empathy.resources.js" type="text/javascript"></script> |
...
Once the library is added to the page, you need to initialize the service you need to create an instance of the service (It is no longer necessary to call the init() method):
Code Block |
---|
|
var empathyTAG = new EmpathyBrokerTAG(INSTANCE_ID, ENVIRONMENT).init(); |
Example
Code Block |
---|
|
var empathyTAG = new EmpathyBrokerTAG('client-instance-id', 'stag').init(); |
At this point, you are ready to use the library:
...