tidycal-python
tidycal-python is an API wrapper for Tidycal, written in Python.
This library uses Oauth2 for authentication.
Installing
pip install tidycal-python
Usage
from tidycal.client import Client
client = Client(client_id, client_secret, redirect_uri=redirect_uri)
To obtain and set an access token, follow this instructions:
- Get authorization URL
url = client.authorization_url(state=None)
# This call generates the url necessary to display the pop-up window to perform oauth authentication
# param state(code) is required for direct request for oauth, for local test isn't necessary
- Get access token using code
token = client.get_access_token(code)
# "code" is the same response code after login with oauth with the above url.
- Refresh access token using refresh_token
token = client.refresh_access_token(refresh_token)
# "refresh_token" is the token refresh in response after login with oauth with the above url.
- Get current user
client.get_current_user()
- List of Bookings
client.list_bookings(starts_at=None, ends_at=None, cancelled=None, page=None)
# Receives only one parameter at a time
# starts_at = DATE, Get bookings starting from a specific date.
# ends_at = DATE, Get bookings ending before a specific date.
# cancelled = BOOLEAN, Get only cancelled bookings.
# page = NUMBER, Page number.
- List of Booking Types
client.list_booking_types()
- List of Contacts
client.list_contacts()
Metadata
Release files for tidycal-python 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tidycal_python-0.1.4.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tidycal_python-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / tidycal_python-0.1.4.tar.gz
| Download URL | tidycal_python-0.1.4.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f36e9900376b2687e98e25590955507565d090398ed119bfb2a980676e4d3ff6
|
|
BLAKE2b-256 checksum How to use checksums |
c1d0e73d3179f81ee63c278098f385897f68212b10c5590e3fa6fad3b293b070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / tidycal_python-0.1.4-py3-none-any.whl
| Download URL | tidycal_python-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3903063dc2198fae8ac18b9d178404c8d692f2d508a51b8fbb995397083932ba
|
|
BLAKE2b-256 checksum How to use checksums |
f6d845035dbfc93038d206d3d2a0e7165bbf43959ec7757045ead2740caeef0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|