【发布时间】:2021-06-16 20:37:02
【问题描述】:
我正在尝试从api中获取公司的帖子,我已经申请了营销开发平台并获得了批准。我已经获得了范围为 r_organization_social 的令牌,我正在调用 /shares api:
https://api.linkedin.com/v2/shares?q=owners&owners=urn:li:organization:{company_ID}&sharesPerOwner=100&count=25&sharesPerOwner=10
但我收到以下回复:
{
"paging": {
"start": 0,
"count": 25,
"links": [
{
"type": "application/json",
"rel": "next",
"href": "/v2/shares?count=25&owners=urn%3Ali%3Aorganization%3A{company_ID}&q=owners&sharesPerOwner=10&sharesPerOwner=100&start=0"
}
],
"total": 242
},
"elements": []
}
我尝试更改查询参数,但还是一样
【问题讨论】:
-
根据this thread,可能是因为缺少标头 X-Restli-Protocol-Version: 2.0.0。就我而言,如果我包含它,我会收到另一个错误“参数所有者的值类型无效”,这似乎是已经报告的常见问题 (git issue)。如果您找到任何其他解决方案,请告诉我。
标签: linkedin linkedin-api