Created
February 23, 2018 09:34
-
-
Save alisnic/23246c12b104d3ddf6b10b9c011e6b02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
window.addEventListener("message", function(event) { | |
console.log(JSON.parse(event.data)) | |
} | |
) | |
console.log("subscribed to saltedge connect notification") | |
</script> | |
<!-- | |
YOUR_TOKEN should be the value that you received from calling https://docs.saltedge.com/reference/#tokens-create. | |
Plase make sure that you are passing javascript_callback_type: "post_message" for this requests. In this case | |
the connect window will notify that parent frame when Login status is updated. | |
/--> | |
<iframe width=400 height=600 src="https://www.saltedge.com/connect?token=YOUR_TOKEN" /> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment