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.4.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for highlevel_python-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 377283ab23d206dec1905d57e69ce47711f4f963a8190242d745b593cdf3a2ae |
|
MD5 | ad5f348fa0afba239e07208b2e931525 |
|
BLAKE2b-256 | 32df204004acbb1c489519773e25bd914309a753946c2947642a779b3c609074 |