def add_login_begin(self):
flow = self._flow = client.flow_from_clientsecrets('googledrive.json',
'https://www.googleapis.com/auth/drive.file')
flow.user_agent = const.APP_USERAGENT
flow.redirect_uri = client.OOB_CALLBACK_URN
authorize_url = flow.step1_get_authorize_url()
return {'Login URL': authorize_url}
评论列表
文章目录