php - 错误:在第 80 行调用 src\addons\EWR\Rio\Api\YouTube.php 中未定义的方法 GuzzleHttp\Psr7\Response::json()
问题描述
我正在尝试修复 XF2 插件但无法正常工作:/
try
{
$client = \XF::app()->http()->client();
$response = $client->get(self::$base.'channels', [
'query' => [
'part' => 'snippet,brandingSettings',
'id' => $matches['sval1'],
'key' => $service->service_apikey
],
]);
$json = $response->json();
}
catch (\Exception $e)
请帮助我在 XF2 上使用 Youtube API 谢谢 :)
解决方案
推荐阅读
- r - ggplot2显示离散变量的多个点
- html - 烧瓶:模板未更新
- java - Apache CXF 作为 Ant 项目中的 Jar?
- r - 在 R 中使用 pmap 函数
- python - 仅在使用诗歌时出现 Keras 错误
- youtube-data-api - Power BI YouTube 集成
- javascript - ejs中的下拉框,访问ejs文件中javascript之外的javascript变量
- passwords - 损坏的 sudoers 文件和 root 密码
- android - 至少 30.8.2 版本的包“Android 模拟器”不可用
- javascript - 为什么这个 JavaScript 在我的 SSR 报告中不起作用