calendly-python
calendly-python is an API wrapper for Calendly, written in Python
Installing
pip install calendly-python
Usage
from calendly.client import Client
client = Client('access_token')
user_uri = client.user_uri
user_uuid = client.user_uuid
organization_uri = client.organization_uri
organization_uuid = client.organization_uuid
If you don't have access_token you can get one using Oauth2, following the next steps: Check https://developer.calendly.com/how-to-authenticate-with-oauth, for more info.
- Initiate client:
client = Client(client_id="client_id", client_secret="client_secret", redirect_uri="redirect_uri")
- Get authorization URL to get code
url = client.authorization_url()
- Get access token using code
response = client.get_access_token(code)
- Set access token
client.set_token(access_token)
If your access token expired, you can get a new one using refresh_token:
response = client.refresh_access_token(refresh_token)
And then set access token again...
Current User
current_user = client.get_current_user()
Get Scheduled Event
event = client.get_scheduled_event(event_uuid)
Webhooks
Create webhook
webhook = client.create_webhook(self, url, events, organization_uri, user_uri, scope)
# events: must be a list of valid events (check calendly API)
# scope: two options: "user" or "organization"
List webhooks
webhooks = client.list_webhooks(self, scope, organization_uri, user_uri=None)
# scope: two options: "user" or "organization"
# Note: must send user_uri if scope = "user"
Delete webhook
client.delete_webhook(webhook_uuid)
Metadata
Release files for calendly-python 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| calendly_python-0.1.2.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| calendly_python-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / calendly_python-0.1.2.tar.gz
| Download URL | calendly_python-0.1.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85b5e93ab0075b098fae44ac2a253e4f0bcc1c74625b4eafe785dba1e1b392ee
|
|
BLAKE2b-256 checksum How to use checksums |
c093172d3618a91aee3d8d25d0baa16ba9f82c67aede7321e009251f88657bb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / calendly_python-0.1.2-py3-none-any.whl
| Download URL | calendly_python-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc816c273e84cc390b55b6beaab6a7eb3d2b5594330f54c227f22e55c31a83a8
|
|
BLAKE2b-256 checksum How to use checksums |
9c400e05770832a9811085523ad33c2d36ad86c5e36e74cfa9c13eab3fce77ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|