identixone/identixone-python

Create instance of http_client in init method API Client

Closed this issue · 0 comments

  • Library version: 0.1.0
  • Python version: 3.8
  • Operating System: Ubuntu 18.04

Description

https://github.com/identixone/identixone-python/blob/master/identixone/api/client.py#L34
In init method of API client create instance of http_client with access token

What I Did

old:

self.http_client = http_client or IdentixOneHttpClient(
auth_token=self.token)

new:

self.http_client = http_client(auth_token=self.token) or IdentixOneHttpClient(
auth_token=self.token)