Skip to content

Instantly share code, notes, and snippets.

@jaredjenkins
Last active December 16, 2015 17:19
Show Gist options
  • Save jaredjenkins/5469066 to your computer and use it in GitHub Desktop.
Save jaredjenkins/5469066 to your computer and use it in GitHub Desktop.
Initializing the Playnomics JavaScript API
<!-- Start Playnomics API -->
<script type="text/javascript">
_pnConfig={};
_pnConfig.userId="<USER-ID>";
var _pnAPIURL=document.location.protocol+"//js.a.playnomics.net/v1/api?a=<APPID>",
_pnAPI=document.createElement("script");
_pnAPI.type="text/javascript";_pnAPI.async=true;_pnAPI.src=_pnAPIURL;document.body.appendChild(_pnAPI);
</script>
<!-- End Playnomics API -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment