-
Notifications
You must be signed in to change notification settings - Fork 3
Adding custom api keys
Current as of version 0.6
1- Navigate to consumerapi.bitcasa.com/admin/applications/new and login
2- Fill in the form to create a new application. The redirect url does not matter but for uniformity you can set it to http://localhost:1115/bitcasafilelister/auth
3- Once created it will present you with your client ID and client secret
4a- (version 0.6 and below) Copy the client ID and client secret into the utils.py file at line 1 and 2 as displayed below.
CLIENTID = "<New Client ID>"
CLIENTSECRET = "<New Client Secret>"
4b- (version 0.7.1 and above) If you have never run the BitcasaFileLister copy bitcasa_sample.ini to a new file bitcasa.ini. Replace the client ID and client secret with the new ones.
5- If you had an existing token with different creds, remove it from bitcasa.ini.
6- Run the oauth generator via this command:
python BitcasaFileLister
7- If your browser does not open, navigate to the output link and login
8- Your token should be stored automatically for you. Hit CTRL+C to exit the FileLister