Giter Site home page Giter Site logo

embed-demo's Introduction

Calendly Dynamic Embed Demo

This project demonstrates how to include a dynamic Calendly booking embed in your website.

Usage

To use this demo, you must first get your Calendly API Key. Please follow the instructions at:

Once you have your API Key, you can run this demo locally using the following instructions:

npm install

API_KEY=**YOUR API KEY** npm start

Where "YOUR API KEY" is replaced with the value obtained above. This should display a simple form that allows you to select from your available defined event types, similar to:

Form Example

Select from the available event types and submit the form. You should then be shown a page containing the embed for the selected event type from which you can book an event, similar to:

Event Type Example

How does it work?

This implementation is based on the following steps:

  1. When the root landing page is generated, the application queries the Calendly API to get your user details and list of available event types. This information is used to compose a list of available event types and their associated URL. This is done in the file /routes/index.js.
  2. When you select an event type and submit, the appropriate event type URL is sumbitted to the /embed page. This is done in the /views/index.hbs template.
  3. The embed page uses Calendly's standard "Inline Embed" code to render the selected event type, substituting the event type URL that was submitted from the root landing page. This is accomplished in the /views/embed.hbs template.

embed-demo's People

Contributors

cadement avatar

Stargazers

 avatar

Watchers

Brett avatar Andrew Terris avatar Aubrey Rhodes avatar Sarah Zelechoski avatar Jonathan Cutrell avatar Stephen Reid avatar James Cloos avatar  avatar Garfield Linden avatar Brett Clanton avatar Roy Duvall avatar Nedko Hristov avatar Matt Rathbun avatar Kevin Ashley avatar Scott Hawkins avatar

Forkers

isabella232

embed-demo's Issues

Bad bug with availability

Sorry, I know this isn't the right place to post but just
wanted to quickly explain this issue.

Here is how I set my availability:
Screen Shot 2021-02-26 at 6 34 15 AM

And here is what people are seeing/booking:

Screen Shot 2021-02-26 at 6 37 20 AM

my email is [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.