docusign-esign-python-client icon indicating copy to clipboard operation
docusign-esign-python-client copied to clipboard

ApiClient.set_access_token(token_obj) is not useful

Open schluta opened this issue 5 months ago • 3 comments

ApiClient.set_access_token(token_obj) does not add "Bearer" before the access token.

    def set_access_token(self, token_obj):
        """

        :param token_obj: 
        :return: 
        """
        self.default_headers['Authorization'] = token_obj.access_token

In addition, I think this would be much more useful to pass the token itself and modify the header. Instead it seems to be looking for a response object which then accesses the access_token parameter.

schluta avatar Aug 22 '25 15:08 schluta