Skip to main content
This page is a reference of all the functions accessible from the HotGlue object exposed by the widgetv2.js script. After installing the widget using plain JavaScript, you can reference the HotGlue (or window.HotGlue) object and all the utility functions included in the widget.

open

Usage

HotGlue.open(user id, options)

Parameters

Description

Launches the hotglue widget for user with specified options.

close

Usage

HotGlue.close()

Description

Closes the hotglue widget.

preload

Usage

HotGlue.preload(user id, flow id)

Parameters

Description

Preloads the relevant user/flow data for usage with the HotGlue.link function.

link

Usage

HotGlue.link(user id, flow id, source, preloaded, options)

Parameters

Description

If specified source is not linked, this will open a popup window for user to login If specified source is linked, this will open the hotglue widget under specified flow so user can manage the source.

reconnect

Usage

HotGlue.reconnect(user id, flow id, entity id, options)

Parameters

Description

Used to reconnect an OAuth entities. Note for non-OAuth sources or targets, this will have no effect. In order to reconnect a target, you must pass the isTarget parameter to the options object.

disconnect

Usage

HotGlue.disconnect(user id, flow id, entity id, options)

Parameters

Description

Used to disconnect an entity (source or target). Note you must pass the isTarget parameter to the options object if disconnecting a linked target.

setListener

Usage

HotGlue.setListener(listener)

Parameters

Description

Updates current listener configuration to specified listener object

getLinkedSources

Usage

HotGlue.getLinkedSources(flow id, user id)

Parameters

Response

Returns a Promise which must be awaited or assigned a callback to extract relevant data
JSON

Description

Convenience function wrapping the hotglue API to check if user has linked sources.

createJob

Usage

HotGlue.createJob(flowId, tenantId, startDate)

Parameters

Response

Returns a Promise which must be awaited or assigned a callback to extract relevant data
JSON

Description

Convenience function wrapping the hotglue API to run a job for the user.

hasMounted

Usage

HotGlue.hasMounted()

Description

Returns true if the widget has mounted and is ready for use. false otherwise.

localization

Object specifying localization overrides for text in the widget.
JSON