API wrapper for Tidycal written in Python
Project description
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()
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
tidycal_python-0.1.4.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file tidycal_python-0.1.4.tar.gz
.
File metadata
- Download URL: tidycal_python-0.1.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f36e9900376b2687e98e25590955507565d090398ed119bfb2a980676e4d3ff6 |
|
MD5 | be786978fc79bfedd703c509056e343d |
|
BLAKE2b-256 | c1d0e73d3179f81ee63c278098f385897f68212b10c5590e3fa6fad3b293b070 |
File details
Details for the file tidycal_python-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: tidycal_python-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3903063dc2198fae8ac18b9d178404c8d692f2d508a51b8fbb995397083932ba |
|
MD5 | 244825b37cd58fada115ce529b5fbf20 |
|
BLAKE2b-256 | f6d845035dbfc93038d206d3d2a0e7165bbf43959ec7757045ead2740caeef0a |