{% extends "layout.html" %} {% block content %}

Authorize via Trello

// src/routes/trello.py - Generate URL for OAuth
from helpers.trello import get_auth_url
auth_url = get_auth_url(
    key=os.environ.get("TRELLO_API_KEY"),
    return_url=url_for("trello.callback", _external=True),
)
  1. Go to https://trello.com/app-key page
  2. Add {{ url_root }} to "Allowed Resources" section
  3. Continue with Authorize
{% if trello_authorized %}

Status: authorized

{% else %}

Status: not authorized

{% endif %}

Authorize via HubSpot

// src/routes/oauth.py - Generate URL for OAuth
from hubspot.utils.oauth import get_auth_url
auth_url = get_auth_url(
    scopes=('contacts',),
    client_id=os.environ.get('HUBSPOT_CLIENT_ID'),
    redirect_uri=get_redirect_uri(),
)
Authorize {% if hubspot_authorized %}

Status: authorized

{% else %}

Status: not authorized

{% endif %}
{% endblock %}