duanlu5055 2015-10-28 10:53
浏览 106

在client-> fetchAccessTokenWithAssertion()中获取错误

I want to get GA data by google real time analytics api. For this i am using google api php client. i am following below tutorial. https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/service-php

I am getting error in client->fetchAccessTokenWithAssertion(). This function gives following error.

PHP Fatal error: Uncaught exception 'LogicException' with message 'config parameter "signing_key" must be set to refresh a token with assertion' in /Users/CFADMIN/Work/googleanalytics/google-api-php-client/src/Google/Client.php:201

can anyone tell me why am getting this error?

  • 写回答

1条回答 默认 最新

  • dongshuao2309 2015-10-28 12:44
    关注

    The root cause of this is that your authentication is incorrect so it hasn't generated a signing_key in the config object.

    I would suggest your issue is with the client_secret.p12 file.

    Are you sure this file is populated correctly and that the path to it is correct here?

    $key_file_location = '<Replace with /path/to/generated/client_secrets.p12>';

    评论

报告相同问题?

悬赏问题

  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏