Skip to content

Instantly share code, notes, and snippets.

@BenLloydPearson
Last active October 7, 2019 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenLloydPearson/0937d0c6b82766b5e53025668646eb04 to your computer and use it in GitHub Desktop.
Save BenLloydPearson/0937d0c6b82766b5e53025668646eb04 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Nylas Scheduler</title>
<script src="https://schedule.nylas.com/schedule-editor/v1.0/schedule-editor.js" type="text/javascript"></script>
</head>
<body>
<button type="button" id="schedule-editor">Open Schedule Editor</button>
<script>
var btn = document.getElementById('schedule-editor');
btn.addEventListener('click', function() {
nylas.scheduler.show({
auth: {
accessToken: "ACCESS_TOKEN",
}
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment