private function BackupMigrateDropboxAPI::get_app_id in Backup and Migrate Dropbox 7.3
Returns the Dropbox app id of this app.
Return value
string
Throws
RuntimeException
3 calls to BackupMigrateDropboxAPI::get_app_id()
- BackupMigrateDropboxAPI::get_authorize_url in ./
backup_migrate_dropbox.dropbox_api.inc - Returns the (parameterized) authorize URL.
- BackupMigrateDropboxAPI::obtain_refresh_token in ./
backup_migrate_dropbox.dropbox_api.inc - Obtains a first bearer and a refresh token.
- BackupMigrateDropboxAPI::refresh_bearer_token in ./
backup_migrate_dropbox.dropbox_api.inc - Refreshes and returns an expired bearer token.
File
- ./
backup_migrate_dropbox.dropbox_api.inc, line 90
Class
- BackupMigrateDropboxAPI
- BackupMigrateDropboxAPI contains all the details about the Dropbox api, authorization calls, endpoints, uris, parameters, error handling, and split requests for large uploads/downloads
Code
private function get_app_id() {
$client_id = variable_get('backup_migrate_dropbox_app_key');
if ($client_id === NULL) {
throw new RuntimeException('Module "Backup and Migrate Dropbox" not installed or updated correctly. Please run update.php on your site.');
}
return $client_id;
}