Copied from plugins/updraftplus/includes/Dropbox2/API.php to plugins/ocean-extra/includes/wizard/API.php