An easy to use API Wrapper for the Appointment Plus API written in Python.
Appointment PLus is online appointment scheduling software. They also maintain and provide access to their RESTFUL API endpoints. py_apptplus is a high-level python library that allows the easy calling to the various endpoints available in appointment plus api. See below for a list of categories and endpoints that are currently supported in the library.
- GetAppointments: Returns the details for appointments.
- GetOpenDates: The method will return all available dates between start_date + num_days. If start_date is not specified, it will default to today’s date.
- GetOpenSlots: Returns all available time slots for
num_days
number of days after thestart_date
date.
- GetCustomers: Returns the details for customers.
- GetLocations: Returns the details for all locations.
from py_apptplus.appointments import *
import os
creds = {
'user': os.environ.get('APPT_PLUS_USER'),
'pass': os.environ.get('APPT_PLUS_PASS'),
'baseURL': 'https://ws.appointment-plus.com'
}
APPTSV1 = AppointmentsV1(creds)
appointments = APPTSV1.getAppointmentsInRange(datetime.strptime('20220301', '%Y%m%d'), datetime.strptime('20220303', '%Y%m%d'))
for appt in appointments:
print(appt.date)
from py_apptplus.locations import *
import os
creds = {
'user': os.environ.get('APPT_PLUS_USER'),
'pass': os.environ.get('APPT_PLUS_PASS'),
'baseURL': 'https://ws.appointment-plus.com'
}
LOCSV1 = LocationsV1(creds)
allLocs = LOCSV1.getAllLocations()
for loc in allLocs:
print(loc.locationName)
from py_apptplus.customers import *
import os
creds = {
'user': os.environ.get('APPT_PLUS_USER'),
'pass': os.environ.get('APPT_PLUS_PASS'),
'baseURL': 'https://ws.appointment-plus.com'
}
CUSTV1 = CustomersV1(creds)
customer = CUSTV1.getCustomer(330379)
print(customer.email)