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()
# This call generates the url necessary to display the pop-up window to perform oauth authentication
- 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()
- 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.3.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for tidycal_python-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39e2947d29dcf060b284e71335e55f95a96a51684b08a725cba3d0310d17869f |
|
MD5 | 04587adc4b23abaf7cd3bf0dadeb0f4c |
|
BLAKE2b-256 | a464974888814a62ae4d1a52d01a561dde9a4eee4499ed7cdefe15c29d1085f8 |