Last active
October 7, 2019 17:54
-
-
Save BenLloydPearson/0937d0c6b82766b5e53025668646eb04 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
<!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