Das Problem ist, dass ich keine HttpURLConnection , sondern eine HttpResponse oder HttpRequest aus der Drive Bibliothek habe. Der HttpRequest hab ich es jetzt geschafft den Header mitzugeben, aber dann kommt der Fehler 403 Forbidden.
02-05 20:51:24.087 11677-12492/com.tomathomas.tvrecords W/System.err: com.google.api.client.http.HttpResponseException: 403 Forbidden
02-05 20:51:24.088 11677-12492/com.tomathomas.tvrecords W/System.err: {
02-05 20:51:24.088 11677-12492/com.tomathomas.tvrecords W/System.err: "error": {
02-05 20:51:24.088 11677-12492/com.tomathomas.tvrecords W/System.err: "errors": [
02-05 20:51:24.088 11677-12492/com.tomathomas.tvrecords W/System.err: {
02-05 20:51:24.088 11677-12492/com.tomathomas.tvrecords W/System.err: "domain": "usageLimits",
02-05 20:51:24.088 11677-12492/com.tomathomas.tvrecords W/System.err: "reason": "quotaExceeded",
02-05 20:51:24.094 11677-12492/com.tomathomas.tvrecords W/System.err: "message": "The download quota for this file has been exceeded",
02-05 20:51:24.095 11677-12492/com.tomathomas.tvrecords W/System.err: "locationType": "other",
02-05 20:51:24.095 11677-12492/com.tomathomas.tvrecords W/System.err: "location": "quota.download"
02-05 20:51:24.095 11677-12492/com.tomathomas.tvrecords W/System.err: }
02-05 20:51:24.095 11677-12492/com.tomathomas.tvrecords W/System.err: ],
02-05 20:51:24.095 11677-12492/com.tomathomas.tvrecords W/System.err: "code": 403,
02-05 20:51:24.095 11677-12492/com.tomathomas.tvrecords W/System.err: "message": "The download quota for this file has been exceeded"
02-05 20:51:24.095 11677-12492/com.tomathomas.tvrecords W/System.err: }
02-05 20:51:24.095 11677-12492/com.tomathomas.tvrecords W/System.err: }
Empfohlener redaktioneller Inhalt
Mit Deiner Zustimmung wird hier ein externer Inhalt geladen.
Mit Klick auf den oben stehenden Button erklärst Du Dich damit einverstanden, dass Dir externe Inhalte angezeigt werden dürfen. Dabei können personenbezogene Daten an Drittanbieter übermittelt werden. Mehr Infos dazu findest Du in unserer Datenschutzerklärung.