connect.governance.credo_api_client.CredoApiClient

class connect.governance.credo_api_client.CredoApiClient(config=None, config_path=None)

Bases: object

CredoApiClient is interface class to the Credo API server.

__init__(config=None, config_path=None)

Methods

__init__([config, config_path])

delete(path, **kwargs)

Send delete request and return retult

get(path, **kwargs)

Send get request and return retult

patch(path[, data])

Send patch request and return retult

post(path[, data])

Send post request and return retult

refresh_token()

Get access token and set to headers

set_access_token(access_token)

Set access token to headers

delete(path, **kwargs)

Send delete request and return retult

get(path, **kwargs)

Send get request and return retult

patch(path, data=None, **kwargs)

Send patch request and return retult

post(path, data=None, **kwargs)

Send post request and return retult

refresh_token()

Get access token and set to headers

set_access_token(access_token)

Set access token to headers