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 Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page