trendminer.trendminer_client module

This module only contains the class TrendMinerClient

class trendminer.trendminer_client.TrendMinerClient(token: str, url: str = 'http://primary.node.consul')

Bases: object

TrendMinerClient is the entry point to the TrendMiner installation

get_auth_header()

Retrieve the token wrapped in a bearer authentication header

Returns

The dictionary corresponding to the proper authentication header

get_token() → str

Retrieve the token provided at initialisation time

Returns

The TrendMiner OAuth2 token

get_url() → str

Retrieve the URL provided at initialisation time

Returns

The URL of your TrendMiner installation