Skip to main content

SDK for https://datelist.io in Python

Project description

SDK for https://datelist.io in Python

Usage

from datelist.client import Client

client = Client('WGQqyEjfXLtK74K5YuxrHn7v')
calendars = client.list_calendars()
products = client.list_products({ 'calendar_id': 441, 'name': "Table" })
slots = client.list_booked_slots({
  'email': "test@test.com",
  'calendar_id': 441,
  'from': "2021-08-04T04:51:59.945Z",
  'to': "2021-08-30T04:51:59.945Z",
})

print(calendars)
print(products)
print(slots)

print(client.update_booked_slot(slots[0]['id'], {'email': 'test2@test.com'}))
print(client.update_booked_slot(slots[0]['id'], {'email': 'test@test.com'}))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datelist-sdk-python-1.0.0.tar.gz (1.8 kB view hashes)

Uploaded source

Built Distribution

datelist_sdk_python-1.0.0-py3.9.egg (2.0 kB view hashes)

Uploaded 1 0 0

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page