Jeder Youtube Upload Call schlägt fehl, sobald "RecordingDetails" enthalten sind.YouTube API PHP V3: Upload mit RecordingDetails (Google API Client V2)
Die folgende einfache Call (Auszug):
$rc=new \Google_Service_YouTube_VideoRecordingDetails();
$rc->setRecordingDate('2016-08-02T21:17:00.000Z');
$video->setRecordingDetails($rc);
ausfällt. ich auch mit einem Standort versucht:
$rc=new \Google_Service_YouTube_VideoRecordingDetails();
$ld=new \Google_Service_YouTube_GeoPoint();
$ld->setLatitude(36.527294814546);
$ld->setLongitude(128.5400390625);
$rc->setLocation($ld);
$video->setRecordingDetails($rc);
Der gleiche Fehler auftritt. Außerdem ist die Fehlermeldung nicht wirklich hilfreich :)
"error": {
"errors": [
{
"domain": "youtube.part",
"reason": "unexpectedPart",
"message": "{0}",
"locationType": "parameter",
"location": "part"
}
],
"code": 400,
"message": "{0}"
}
}
Hat jemand schon erwähnt, ein Video mit Api V3 und Google-Client V2 und einem RecordingDetail hochladen?
Wenn jemand interessiert ist, hier ist, wie die RecordingDetails Objekt wie folgt aussieht:
Google_Service_YouTube_VideoRecordingDetails Object
(
[locationType:protected] => Google_Service_YouTube_GeoPoint
[locationDataType:protected] =>
[locationDescription] =>
[recordingDate] => 2016-08-02T21:17:00.000Z
[internal_gapi_mappings:protected] => Array
(
)
[modelData:protected] => Array
(
)
[processed:protected] => Array
(
)
[location] => Google_Service_YouTube_GeoPoint Object
(
[altitude] =>
[latitude] => 36.527294814546
[longitude] => 128.5400390625
[internal_gapi_mappings:protected] => Array
(
)
[modelData:protected] => Array
(
)
[processed:protected] => Array
(
)
)
)
Danke, Christoph