- Quick Setup:
There must be a logs directory under the root of your project. (Unless custom logger is passed)
There must be a cache directory under the root of your project. (Unless a custom cache class is passed)
Pip install keap-flask
from keap_flask.keapclient import KeapClient
Initialize with: keap = KeapClient(app=app)
- Flask app must have three config variables set:
1: KEAP_CLIENT_ID: The Client ID setup on keys.infusionsoft.com
2: KEAP_CLIENT_SECRET: The Client Secret obtained when you setup your client on keys.infusionsoft.com
3: AUTH_APP_BASE_URL: The Base URL of your application. Make sure to include trailing slash.
- Notes:
https must be used. I use –cert=adhoc option when testing
app is a required argument when initializing
- Custom Auth Handler Class:
A custom Auth Handling class can be used by passing it as an arg upon initialization.
- Your Auth class must contain the following methods:
get_authorization: returns auth
update_authorization: updates stored auth
- Authorizing
- A blueprint is added to the flask app. It adds the following:
- Authorization Route: ‘/authorize-keap’
ex: yoursite.com/authorize-keap
this is where you will authorize your application
A CLI command for refreshing auth should the autorefresh fail.:
Command: ‘flask keap refresh-auth’
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file keap_flask-0.6.0.tar.gz.
File metadata
- Download URL: keap_flask-0.6.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e76ac4e5e3e998080ea5b9aafeff09dbfb2f17c86c068dbc6b69691ce4e023f5
|
|
| MD5 |
c1f76c183de0707db237fbc2c1e9de91
|
|
| BLAKE2b-256 |
69d3b7b9f8f13fd46ebbcbb1f72106e0f0b397392405ccf5ed1571cba04c4efa
|