Skip to content

Instantly share code, notes, and snippets.

@mehdimehdi
Last active January 2, 2016 16:09
Show Gist options
  • Save mehdimehdi/8327960 to your computer and use it in GitHub Desktop.
Save mehdimehdi/8327960 to your computer and use it in GitHub Desktop.
Log a user in (create an account if user does not exists)
<!DOCTYPE HTML>
<html>
<body>
<script>
var _pt_pre_config = {
auth_request: "eyJpZCI6IjIiLCJmaXJzdF9uYW1lIjoiSm9obiIsImxhc3RfbmFtZSI6IkRvZSIsImVtYWlsIjoiam9obi5kb2VAZXhhbXBsZS5uZXQiLCJhdmF0YXJfbGluayI6Imh0dHA6XC9cL3MzLmFtYXpvbmF3cy5jb21cL3B1bmNodGFiLXN0YXRpY1wvenp6enp6XC9pbWdcL3RlYW1cL2xld29sZi5qcGcifQ==",
signature: "9660b0ea6c6abc916ea055a6fdd12c76cb3a4dfb",
timestamp: "1389384230",
client_id: "2128281015"
};
</script>
<script type="text/javascript" charset="utf-8">
var _ptq = _ptq || [];
var _punchtab_settings = {
key: "c370b56450e41a8f689fffb2374e7ef4",
bar: {}
};
(function() {
var pt = document.createElement('script'); pt.type = 'text/javascript'; pt.async = true;
pt.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.punchtab.com/js/pt.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pt, s);
})();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment