def Authenticate(self, code):
    if self.flow is None:
      self.GetFlow()
    try:
      self.credentials = self.flow.step2_exchange(code)
    except FlowExchangeError as e:
      raise AuthenticationError('OAuth2 code exchange failed: %s' % e)
    print('Authentication successful.')
Authenticates given authentication code back from user.
dataset/ETHPy150Open googledrive/PyDrive/pydrive/auth.py/GoogleAuth.Authenticate