简体   繁体   English

LinkedIn API,阅读组发布问题

[英]LinkedIn API, Reading groups posts issue

I am using Zend Framework to access LinkedIn API. 我正在使用Zend Framework访问LinkedIn API。 When reading posts from a group (using http://api.linkedin.com/v1/groups/[group_id]/posts:(some_arguments) together with start and count) sometimes I can load only several first posts from first page. 从群组中读取帖子时(使用http://api.linkedin.com/v1/groups/[group_id]/posts:(some_arguments)以及开始和计数),有时我只能从首页加载几篇第一篇文章。 When trying to load next page I receive empty result, but sometimes it works fine . 尝试加载下一页时,我收到空结果,但有时效果很好。 I can see the issue only when trying to read popular groups. 我只有在尝试阅读热门论坛时才能看到该问题。 It always works correctly when reading my small group or my network. 在阅读我的小组或网络时,它始终可以正常工作。 Maybe somebody has seen this issue before and knows what to do? 也许有人以前看过这个问题,知道该怎么办? Thank you. 谢谢。

Depending on what "some arguments" are and the number of posts you're requesting, you may be running into a timeout. 根据“一些参数”和请求的帖子数,您可能会遇到超时问题。 If you're getting information about the profiles for the people who posted, commented and/or liked the posts as well as the post information itself, it can be an expensive call on the backend. 如果您要获取有关发布,评论和/或喜欢这些帖子的人员的个人资料以及帖子信息本身,那么在后端可能是一个昂贵的电话。

Try retrieving fewer posts at once, or reducing the number of additional fields you're requesting, and see if that resolves the problem. 尝试一次检索较少的帖子,或减少您请求的其他字段的数量,看看是否可以解决问题。 If it does, please post in the forum at developer.linkedin.com and let us know about the issue, so we can make sure the engineers are aware of the timeouts. 如果是这样,请在developer.linkedin.com上的论坛中发布并让我们知道该问题,以便我们确保工程师知道超时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM