biweeklybudget.flaskapp.views.plaid module

Bases: flask.views.MethodView

Handle POST /ajax/plaid/handle_link endpoint.

methods = {'POST'}
post()[source]
class biweeklybudget.flaskapp.views.plaid.PlaidJs[source]

Bases: flask.views.MethodView

Handle GET /plaid.js endpoint, for CI/test or production/real.

get()[source]
methods = {'GET'}
class biweeklybudget.flaskapp.views.plaid.PlaidLinkToken[source]

Bases: flask.views.MethodView

Handle POST /ajax/plaid/create_link_token endpoint.

methods = {'POST'}
post()[source]
class biweeklybudget.flaskapp.views.plaid.PlaidRefreshAccounts[source]

Bases: flask.views.MethodView

Handle POST /ajax/plaid/refresh_item_accounts endpoint.

methods = {'POST'}
post()[source]
class biweeklybudget.flaskapp.views.plaid.PlaidUpdate[source]

Bases: flask.views.MethodView

Handle GET or POST /plaid-update

This single endpoint has multiple functions:

  • If called with no query parameters, displays a form template to use to interactively update Plaid accounts.
  • If called with an item_ids query argument, performs a Plaid update of the specified CSV list of Plaid Item IDs, or all Plaid-enabled accounts if the value is ALL. The response from this endpoint can be in one of three forms:
    • If the Accept HTTP header is set to application/json, return a JSON list of update results. Each list item is the JSON-ified value of as_dict.
    • If the Accept HTTP header is set to text/plain, return a plain text human-readable summary of the update operation.
    • Otherwise, return a templated view of the update operation results.
_form()[source]
_update(ids)[source]

Handle an update for Plaid accounts.

get()[source]

Handle GET. If the account_ids query parameter is set, then return _update(), else return _form().

methods = {'GET', 'POST'}
post()[source]

Handle POST. If the account_ids query parameter is set, then return _update(), else return a HTTP 400.

class biweeklybudget.flaskapp.views.plaid.PlaidUpdateItemInfo[source]

Bases: flask.views.MethodView

Handle POST /ajax/plaid/update_item_info endpoint.

methods = {'POST'}
post()[source]
biweeklybudget.flaskapp.views.plaid.set_url_rules(a)[source]