Hallo allerseits ich bin neu in Dropbox API (PHP-Version).Code ist abgelaufen (innerhalb der letzten Stunde) Dropbox
ich bin immer Authcode authorizeUrl verwenden, seine Arbeit nur für eine Zeit gut, wenn i Seite neu laden Fehlermeldung zeigt auf
'HTTP status 400 {"error_description": "code has expired (within the last hour)", "error": "invalid_grant"}
wie dauerhaft Authcode von Dropbox zu bekommen.
$appInfo = dbx\AppInfo::loadFromJsonFile("api-key.json");
$webAuth = new dbx\WebAuthNoRedirect($appInfo, "PHP-Example/1.0");
$authorizeUrl = $webAuth->start();
echo "1. Go to: " . $authorizeUrl . "\n";
echo "2. Click \"Allow\" (you might have to log in first).\n";
echo "3. Copy the authorization code.\n";
$authCode = "****************************************";
list($accessToken, $dropboxUserId) = $webAuth->finish($authCode);
print "Access Token: " . $accessToken . "\n";
$dbxClient = new dbx\Client($accessToken, "PHP-Example/1.0");
$accountInfo = $dbxClient->getAccountInfo();
print_r($accountInfo);
gleichen Fehler, andere Sprache: https://stackoverflow.com/questions/27853375/dropbox-core-api-java-authorization-code – schellingerht