You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
If you are still having issues, please be sure to include as much information as possible:
Environment details
OS: MacOS M2
PHP version: 8.3
Package name and version: "google/apiclient": "^2.15.0"
Steps to reproduce
After following the authentication flow and get/set the bearer token, I'm trying to change a thumbnail of specific video. I'm using Laravel too.
Code example
// After flow of authentication....this is my code:$service = newGoogle_Service_YouTube($this->client);
$videoId = "XG96bA9Q9OE";
$newThumbnailPath = storage_path('app/thumbs/1/test1.jpg');
$response = $service->thumbnails->set($videoId, [
'mimeType' => 'image/jpeg',
'data' => file_get_contents($newThumbnailPath)
]);
dd($response);
Response error:
{
"error": {
"code": 403,
"message": "The thumbnail can't be set for the specified video. The request might not be properly authorized.",
"errors": [
{
"message": "The thumbnail can't be set for the specified video. The request might not be properly authorized.",
"domain": "youtube.thumbnail",
"reason": "forbidden",
"location": "videoId",
"locationType": "parameter"
}
]
}
}
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered:
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
If you are still having issues, please be sure to include as much information as possible:
Environment details
Steps to reproduce
Code example
Response error:
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: