plugable-matrix-bot/matrix_bot_api/custom_matrix_client/api.py
Dennis 9e139a0f3e Add custom Matrix Python SDK. Solves #5 and #2
This commit releases a custom Matrix Python SDK. This means that the
most important classes---MatrixClient, Room, and MatrixHttpApi---are
inherited by Custom classes. This enables us to change behaviour or add
new features in a well structured and predictable way.

The first issue that is solved with this new custom SDK is the problem
that was introduced in #2.
2019-01-20 00:41:02 +01:00

11 lines
329 B
Python

from matrix_client.api import MatrixHttpApi
class CustomMatrixHttpApi(MatrixHttpApi):
def __init__(
self, base_url, token=None, identity=None,
default_429_wait_ms=5000,
use_authorization_header=True
):
super().__init__(base_url, token, identity, default_429_wait_ms)