首页 > 解决方案 > 错误:在第 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 谢谢 :)

标签: php

解决方案


推荐阅读