【问题标题】:Google analytics api (Analytics.php) doesn't support prettyPrint optionGoogle 分析 api (Analytics.php) 不支持 prettyPrint 选项
【发布时间】:2014-09-16 05:13:57
【问题描述】:

当我尝试将 prettyPrint 传递给

$optParams['prettyPrint'] = true;
$analytics->data_ga->get($analytics_id,
                        $start_date,
                        $end_date,$metrics, $optParams);

我收到以下错误: There was an error : - (get) unknown parameter: 'prettyPrint'

当我查看 Analtyics.php 时,该选项不在其中。有没有办法在不修改 Analytics.php 的情况下解决这个问题?

【问题讨论】:

  • 我不明白您为什么要使用 prittyPrint 与您实际上不必处理 Json 的客户端库。如果您认为这是一个错误,您可以在 github.com/google/google-api-php-client 上创建问题

标签: php google-analytics google-api-php-client


【解决方案1】:

小心注册。 prettyPrint 是错误的参数。请改用prettyprint

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-01-24
    • 1970-01-01
    • 2011-12-25
    • 2022-01-22
    • 1970-01-01
    • 2021-10-25
    • 2018-06-10
    相关资源
    最近更新 更多