Skip to content

Instantly share code, notes, and snippets.

@loganvolkers
Created September 20, 2016 02:55
Embed
What would you like to do?
Widget API Definition
/**
* Widget <> Squatch.js Interface via EasyXDM
*/
init(height, width, codeIn, rewardBalance, resizeEmbedToContentIn)
resize(height, width)
publish(eventName, payload)
close()
error(errorMessage, height, width)
// These are the messages sent to the widget
openedWidget(mode, userId, systemId)
closedWidget()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment