A Python wrapper for the Calendly API (https://developer.calendly.com/docs/)
Project description
calendly-python 🐍
Python package to use the Calendly API 🚀
Installation
pip install calendly
Usage
Set your Authentication token
See Calendly docs to get your auth token
from calendly import Calendly
calendly = Calendly(api_key)
Test the auth token
calendly.echo()
Webhooks
Create A Webhook Subscription
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
Get Webhook Subscription
calendly.get_webhook('webhook_id')
Get List of Webhook Subscriptions
calendly.list_webhooks()
Delete Webhook Subscription
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"}
User Event Types
calendly.event_types()
About Me
calendly.about()
Important
- 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!
TODOs:
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
calendly-1.1.1.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file calendly-1.1.1.tar.gz
.
File metadata
- Download URL: calendly-1.1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc6a17c305fea8f2199512e5ba1af5ff94991fe0f245b69d8fd01d4bc0586390 |
|
MD5 | e2c4ecf953a18cdd21301b7cef997b52 |
|
BLAKE2b-256 | 83e32f4be985a2463bae4163ebb649b9da8a92d2f858a22b004a2296d7457276 |
File details
Details for the file calendly-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: calendly-1.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9df18543a83cc2dddafb20bdf74654c49e5395b166e034c9c6c82dd610830614 |
|
MD5 | a30a41f8597fae54ca2b7491839dc1ad |
|
BLAKE2b-256 | 3e904c90dc6aa2511dd5aea8143ce0bed299ffe3a1985a3a8109e70279c0d302 |