def get_new_token(self):
        # Ask the user for a code
        code = self.get_code()

        token_request = {'code': code,
                         'client_id': self.user_id,
                         'client_secret': self.key,
                         'redirect_uri': self.redirect_uri,
                         'grant_type': 'authorization_code'}

        return self._token_request(token_request)
Flush and close the stream.
dataset/ETHPy150Open apache/libcloud/libcloud/common/google.py/GoogleInstalledAppAuthConnection.get_new_token--crossover with--dataset/ETHPy150Open armet/python-armet/armet/http/response.py/Response.close