Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Holzauge20
4 years agoExplorer | Level 4
Dropbox-Upload mit Python (API v2)
Der Dropbox-Upload per Python-Script Datei mit demRaspberry Pi über die Schnittstelle API v2 funktioniert plötzlich nicht mehr. Hat jemand das gleiche Problem ?
- 4 years ago
Ich glaube, dass Sie da besser aufgehoben sind:
https://www.dropboxforum.com/t5/Developer-API/ct-p/101000041
EibeGrabung
4 years agoExplorer | Level 3
Ja genau, das ging früher mal mittlerweile haben sie diese funktion leider entfernt. Es gibt einen weg wie man mit dem „app key“ und dem „app secret“ es zum laufen bringen kann, da weiß ich aber leider nicht wie.
Holzauge20
4 years agoExplorer | Level 4
Hi, ich habe einen Lösungsweg gefunden. Erstelle zunächst eine OAuth-App-Autorisierungs-URL um einen Autorisierungscode zu erhalten. Mit Autorisierungscode, app-key und app-secret startest du dann eine „curl-Eingabe“ Die Antwort ist ein Access-Token und ein Aktualisierungs-Token. Details hat Greg-DB in diesem Forum beschrieben.
Autorisierungs-URL:
curl-Eingabe:
curl https://api.dropbox.com/oauth2/token \
-d code=AUTHORIZATIONCODE \
-d grant_type=authorization_code \
-u APPKEY:APPSECRET
Nun hast du einen Aktualisierungs-Token und kannst ihn in dein script einfügen. Das kann z.B. so aussehen:
import dropbox
db = dropbox.Dropbox(
app_key = <APP_KEY>,
app_secret = <APP_SECRET>,
oauth2_refresh_token = <REFRESH_TOKEN>
Das Aktualisierungs-Token läuft nicht ab. Im Hintergrund werden automatisch neue kurzlebige Zugriffstoken erzeugt. Du musst die ganze Aktion also nur einmal machen.
Quelle:
Ich habe das o.a Prozedere bei mir erfolgreich getestet und denke, dass auch dein Problem so gelöst werden kann..
- Grüße
About Eine Frage stellen
Sie haben Fragen? Richten Sie sie an die Dropbox Community!
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!