

def TokenClient(domain, token, user_agent=None, request_encoder=default_request_encoder, response_decoder=default_response_decoder):
    "Creates a Freshbooks client for a freshbooks domain, using\n    token-based auth.\n    \n    The optional request_encoder and response_decoder parameters can be\n    passed the logging_request_encoder and logging_response_decoder objects\n    from this module, or custom encoders, to aid debugging or change the\n    behaviour of refreshbooks' request-to-XML-to-response mapping.\n    \n    The optional user_agent keyword parameter can be used to specify the\n    user agent string passed to FreshBooks. If unset, a default user agent\n    string is used.\n    "
    return AuthorizingClient(domain, transport.TokenAuthorization(response_decoder), request_encoder, response_decoder, user_agent=user_agent)

dataset/ETHPy150Open freshbooks/refreshbooks/refreshbooks/api.py TokenClient/VarMisuse@35/250 `token`->`response_decoder`