This set includes various packages and data types for handling with the Dropbox Core API. Basically every function that is listed on the Dropbox Core API Documentation is usable with simple PL/SQL functions, named and specified in a similar fashion to simplify looking up in the official documentation.
The docDropbox package will return simple JSON data, as returned from the Dropbox API itself. The data types can be used to access some of these functions in a more native way, by placing the values in variables.
- Oracle Database 11g (10g might be supported)
- Installed PL/JSON
- Database ACL configured to allow every call to
https://*.dropbox.com - Oracle Wallet configured
Import the .pkb, .pks and .sql files into your database.
- docDropbox is required for basic functionality
- dogTo(...) and dogTt(...) are optional data types that wrap several functions of docDropbox to provide a more native way of accessing a users Dropbox
To use the functions of the Dropbox API, it's required to create an App at the Developer Console.
- If you haven't already, register at Dropbox and log in afterwards
- Create a new Dropbox API app at the Developer App Console with the settings you need
- Afterwards open your App from the Your apps list and copy the App key and App secret
- Open the docDropbox package specifications and insert your App key into
c_vcAppKeyand the App secret intoc_vcAppSecret
Also, setup the Oracle Wallet by inserting the corresponding values into c_vcWalletPath and c_vcWalletPwd.
The functions in docDropbox basically only call the HTTP API of Dropbox. Every function is documented and includes a link to the Dropbox API Documentation for the underlying feature. Using this link you can get a closer look at the expected input values and output.
Take a look at the Introduction.sql file for a short tutorial on authorizing users, uploading files, and listing folders.
Starting with Oracle Database 11g, Access Control Lists restrict the traffic from the database. docDropbox will report an error as the utl_http call to dropbox.com will fail usually with standard settings.
This provides more information on configuring the Oracle ACL.
Every subdomain of dropbox.com should be accessible through the database to provide full functionality.
To make calls to HTTPS servers using the utl_http package, the Oracle Wallet has to be configured.
For more information on Oracle Wallet see Using Oracle Wallet Manager