我们正在使用LinkedIn连接API返回用户的连接列表。特定用户的连接数超过2000,我们必须使用分页来返回超过500的连接。
在我的分页开始= 800 count = 500的第三个呼叫中,我们现在收到一个HTTP 500错误
请求是:
https://api.linkedin.com/v1/people/~/connections:(id,first-name,last-name,formatted-name,public-profile-url,picture-url::(original),headline,industry)?oauth2_access_token=**token**&format=json&start=800&count=500
错误返回为:
{
"errorCode": 0,
"message": "Internal service error",
"requestId": "2JBK4Q1PJV",
"status": 500,
"timestamp": 1424849048682
}
如果我将请求更改为页面中的上一个点(即,设置start = 300且count = 500,则它可以工作)。
这个问题仅在最近几天才开始,我已经检查了限制。在那之前它曾经工作过。
通过将每次请求的联系人数量从500减少到250,我又重新开始工作,并进行多次回合,直到获得所有联系人为止。
https://api.linkedin.com/v1/people/~/connections:(public-profile-url)?start=0&count=250&modified=updated
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句