I am trying to set up a dropbox API on my php website.
It requires that I specify "INSERT_PATH_TO_JSON_CONFIG_PATH"
I have absolutely no idea how to find it.
Any tips would be appreciated.
I am trying to set up a dropbox API on my php website.
It requires that I specify "INSERT_PATH_TO_JSON_CONFIG_PATH"
I have absolutely no idea how to find it.
Any tips would be appreciated.
If you're talking about this page, then you don't need to actually specify that anywhere. You can (in theory) do:
require_once "dropbox-sdk/Dropbox/autoload.php";
use \Dropbox as dbx;
$json = '/path/to/file.json';
$appInfo = dbx\AppInfo::loadFromJsonFile($json);
$webAuth = new dbx\WebAuthNoRedirect($appInfo, "PHP-Example/1.0");
Where /path/to/file.json
contains:
{
"key": "INSERT_APP_KEY_HERE",
"secret": "INSERT_SECRET_HERE"
}
The documentation was simply giving an example, not telling you to make a define.