def get_request ( self , request ) : request . transport_user = self . username request . transport_password = self . api_key return request
swagger python adding an authorization header
Sets token - based auth headers .
def get_request(self, request):
        """Sets token-based auth headers."""
        request.transport_user = self.username
        request.transport_password = self.api_key
        return request