Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

Adding custom api keys

rxsegrxup edited this page Oct 29, 2014 · 6 revisions
  1. Navigate to consumerapi.bitcasa.com/admin/applications/new and login
  2. 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)
  3. Once created it will present you with your client ID and client secret
  4. 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>"
  1. Run the oauth generator via this command:
python getfiles.py --oauth
  1. Navigate to the output link and login
  2. Utilize the access token displayed for your requests

Notes:

  • 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.
Clone this wiki locally