This repository was archived by the owner on Mar 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Adding custom api keys
rxsegrxup edited this page Oct 29, 2014
·
6 revisions
- Navigate to consumerapi.bitcasa.com/admin/applications/new and login
- Fill in the form to create a new application. Be sure to set the redirect URL to
https://rose-llc.com/bitcasafilelister/
(Although it should still work if you don't) - Once created it will present you with your client ID and client secret
- Copy the client ID and client secret into the utils.py file at line 4 and 5 as displayed below.
bitc = BitcasaClient("<new Client ID>", "<new Client Secret>", "https://rose-llc.com/bitcasafilelist/", self.accesstoken)
CLIENTID = "<New Client ID>"
CLIENTSECRET = "<New Client Secret>"
- Run the oauth generator via this command:
python getfiles.py --oauth
- Navigate to the output link and login
- Utilize the access token displayed for your requests
- As of writing this when using a new client id and secret I received a bitcasa "client id not recognized" error.
- Since the BitcasaFileLister php app does not have your client id and secret it needs to re-authenticate you to display your files and folders.
- Be sure to utilize the included client id and secret if you are using the access token that is displayed with a warning.