Python package to use the Calendly API 🚀
pip install calendly
See Calendly docs to get your auth token
from calendly import Calendly
calendly = Calendly(api_key)
calendly.echo()
calendly.events()
calendly.create_webhook('https://your-webhook.com', events=['canceled', 'invited'])
- Note: the
events
variable is a list - Note: possible values are:
canceled
andinvited
- Note: by default the
events
list contains the 2 possible values
calendly.get_webhook('webhook_id')
calendly.list_webhooks()
calendly.remove_webhook('webhook_id')
- Note: the response will be
{'success': True}
if the webhook was successfully removed, otherwise it will be{'success': False, "type": "calendly type", "message": "reason it failed"}
calendly.event_types()
calendly.about()
- Note: All the responses are dictionaries with the calendly response, except for the remove webhook method that also contains the
success
key. Check their docs to know the possible responses!
Next steps for this package:
- Improve how the methods return the responses: proccess Calendly responses and make them objects, so that users can manage the information in an easier way
- Support for version 2 <3
- Creating reusable exceptions for error messages