Skip to content

godzilla74/highlevel-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

highlevel-python

highlevel-python is an API wrapper for highlevel, written in Python.
This library uses Oauth2 for authentication.

Installing

pip install git+https://github.com/godzilla74/highlevel-python.git

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:

  1. 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
  1. 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.
  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%