API wrapper for Highlevel written in Python
Project description
highlevel-python
highlevel-python is an API wrapper for highlevel, written in Python.
This library uses Oauth2 for authentication.
Installing
pip install highlevel-python
Usage
from highlevel.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(state=None)
# This call generates the url necessary to display the pop-up window to perform oauth authentication
# param state(code) is required for direct request for oauth, for local test isn't necessary
- 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.
Postman Collection
You can find a Postman Collection with API routes and responses in:
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
highlevel_python-0.1.3.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for highlevel_python-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f059985832fd307ef52c54389b4342a7007778601356bc74c5385bcd72c0a10 |
|
MD5 | f5eaad05f7fbe84773ab36c97f128f74 |
|
BLAKE2b-256 | 41134a32b3d213c705e9ce370391bf1aaf364d440bed65a97cc77347663a36d6 |