Skip to content

Latest commit

 

History

History
83 lines (55 loc) · 1.55 KB

README.md

File metadata and controls

83 lines (55 loc) · 1.55 KB

GHL v1 Python Wrapper

A GHL Python wrapper for personal use, doesn't contain all the methods as of now. May not be stable xd


Table of Content


Installation


Available at PyPI

pip install GHLpy

Requirements


Used runtime: Python 3.8

requests
json

Available methods


 'add_contactTag', 'bookAppointment', 'contact_appointments', 'create_contactByName', 'delete_appointmentById', 'endpoint', 'get_appointmentById', 'get_calendarBookedSlots', 'get_calendarFreeSlots', 'get_calendars', 'headers', 'lookup_contactByEmail', 'lookup_contactById', 'remove_contactTag', 'token', 'update_appointmentById', 'update_appointmentStatusById'

There is no documentation as of now for this package, you can use help() to get information

from GHL import GHLPy

print(help(GHLPy))

The official API Reference for GHL v1 Endpoint is extensive and detailed as well. It can be found here


Example


To get information on calendars associated:

from GHL import GHLPy

client = GHLPy("mytoken")

r = client.get_calendars(type="service") #type="teams" Default: services

print(r)

Contribute


Well, this was just for personal use, but if you wish to contribute, you are welcome to make PRs


To be updated


Have Fun!