Skip to main content
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’

Metadata

Release files for keap-flask 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for keap-flask 0.6.0
File Size Uploaded
keap_flask-0.6.0.tar.gz 9.2 kB Details

Release files / keap_flask-0.6.0.tar.gz

Download URL keap_flask-0.6.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e76ac4e5e3e998080ea5b9aafeff09dbfb2f17c86c068dbc6b69691ce4e023f5
BLAKE2b-256 checksum
How to use checksums
69d3b7b9f8f13fd46ebbcbb1f72106e0f0b397392405ccf5ed1571cba04c4efa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.6.0 This release

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page