Hi,
is it possible to the page close automatically after the user create/log into his/her account? For this step a new page/tab is open in the web browser, but it does not close automatically. I also have not found a way (using Python, JS, HTML...) to do so. All I did was put a message asking for the user to close the tab... Here's the code:
def dropboxStart(self):
self.session = session.DropboxSession(APP_KEY, APP_SECRET, ACCESS_TYPE)
self.requestToken = self.session.obtain_request_token()
urlDropbox = self.session.build_authorize_url(self.requestToken, "http://localhost:8082/createClient/")
webbrowser.open(urlDropbox)
def createClient(self, oauth_token, uid):
accessToken = self.session.obtain_access_token(self.requestToken)
self.client = DropboxClient(self.session)
return """
<html>
<head>
</head>
<body>
<h1>Connected to Dropbox. Please, close this tab.</h1>
</body>
</html>
"""
Is possible to close this new tab automatically right after the log into the Dropbox account?
Thank you!