We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$channel = $youtube->getChannelById('UC78h1xpnf0nzr24-oZX1qAw');
Fatal error: Uncaught Exception: Error 400 'invideoPromotion' : unknownPart in Youtube.php:530
public function decodeSingle(&$apiData) { $resObj = json_decode($apiData); if (isset($resObj->error)) { $msg = "Error " . $resObj->error->code . " " . $resObj->error->message; if (isset($resObj->error->errors[0])) { $msg .= " : " . $resObj->error->errors[0]->reason; } --------->This error line throw new \Exception($msg,$resObj->error->code); } else { $itemsArray = $resObj->items; if (!is_array($itemsArray) || count($itemsArray) == 0) { return false; } else { return $itemsArray[0]; } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
$channel = $youtube->getChannelById('UC78h1xpnf0nzr24-oZX1qAw');
Fatal error: Uncaught Exception: Error 400 'invideoPromotion' : unknownPart in Youtube.php:530
public function decodeSingle(&$apiData) { $resObj = json_decode($apiData); if (isset($resObj->error)) { $msg = "Error " . $resObj->error->code . " " . $resObj->error->message; if (isset($resObj->error->errors[0])) { $msg .= " : " . $resObj->error->errors[0]->reason; } --------->This error line throw new \Exception($msg,$resObj->error->code); } else { $itemsArray = $resObj->items; if (!is_array($itemsArray) || count($itemsArray) == 0) { return false; } else { return $itemsArray[0]; } } }
The text was updated successfully, but these errors were encountered: