Skip to content

Instantly share code, notes, and snippets.

@escopecz
Last active September 4, 2017 11:45
Show Gist options
  • Save escopecz/f398baa387173147aefc1a3cf82fa084 to your computer and use it in GitHub Desktop.
Save escopecz/f398baa387173147aefc1a3cf82fa084 to your computer and use it in GitHub Desktop.
Cronfig Integration example
<html>
<head></head>
<body>
<div id="cronfig-wrapper">
Loading...
</div>
<script type="text/javascript">
document.cronfigConfig = {
platform: 'app_name',
tasks: {
{
url: 'https://yourapp/trigger/action?secret=slkj23ori2kln',
title: 'Trigger the action'
description: 'Makes your app to do this and that',
}
},
email: '[email protected]',
apiKey: 'known_api_key_here',
rememberApiKey: function(apiKey) {}
}
</script>
<script type="text/javascript" src="https://cdn.cronfig.io/cronfig.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment