dongxian7471 2015-06-18 20:05 采纳率: 100%
浏览 153

LinkedIn公司端点错误

I'm using the LinkedIn api and would like to access companies but I'm running into a vague error that I haven't been able to figure out.

I'm using php and the php libracy 'Happyr\LinkedIn\LinkedIn' to access the API. My current application also has the 'rw_company_admin' permission attached to it.

When I make a call to the api endpoint '/v1/people/~:(id,first-name,last-name)', I get the correct response.

But when I make a call to the '/v1/companies?format=json&is-company-admin=true' endpoint I get the following error:

"Invalid company query request"

When I perform the exact same query in the LinkedIn Rest Console, I get the response I'm looking for. Any ideas?

  • 写回答

2条回答 默认 最新

  • dtg25862 2015-06-19 03:02
    关注

    Figured it out after hours of debugging.

    The issue will probably be specific to the php package mentioned in the question. The LinkedIn library in use was automatically appending 'format=json' to the query call which sparked an error.

    By removing the default output setting in the library, the call worked fine.

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器