Sindbad~EG File Manager

Current Path : /proc/self/root/home/numerotech/dropbox.numerotech.com/dropbox_v2/
Upload File :
Current File : //proc/self/root/home/numerotech/dropbox.numerotech.com/dropbox_v2/offline_auth.py

import dropbox

# Dropbox API settings
DROPBOX_APP_KEY = 'clnaiby2f58qd1s'
DROPBOX_APP_SECRET = '5cghwqyr2oqfnro'

def main():
    auth_flow = dropbox.DropboxOAuth2FlowNoRedirect(DROPBOX_APP_KEY, DROPBOX_APP_SECRET)
    
    authorize_url = auth_flow.start()
    print("1. Go to:", authorize_url)
    print("2. Click 'Allow' (you might have to log in first)")
    print("3. Copy the authorization code.")

    auth_code = input("Enter the authorization code here: ")

    print(auth_flow.finish(auth_code))
    # print("Access Token:", access_token)

if __name__ == '__main__':
    main()

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists