在文档中,我们可以通过以下调用获取组织关注者数量
GET https://api.linkedin.com/rest/networkSizes/urn:li:organization:1234567?edgeType=CompanyFollowedByMember
此方法一直有效到 9 月 1 日,从那时起我们就会收到错误。
我在文档中找不到任何地方表明此 edgeType 已被弃用。 这是一个已知的问题?如果是这样,您预测什么时候会修复?
来电回复
GET https://api.linkedin.com/rest/networkSizes/urn:li:organization:1234567?edgeType=CompanyFollowedByMember
应该是:
{
"firstDegreeSize": 219145
}
但是我们得到了错误
{
"errorDetailType": "com.linkedin.common.error.BadRequest",
"message": "Invalid param. Please see errorDetails for more information.",
"errorDetails": {
"inputErrors": [{
"description": "ERROR :: /value :: \"CompanyFollowedByMember\" is not an enum symbol",
"input": {
"inputPath": {
"fieldPath": "edgeType/value"
}
},
"code": "FIELD_INVALID"
}
]
},
"status": 400
}.
将edgeType的值从
CompanyFollowedByMember
更改为COMPANY_FOLLOWED_BY_MEMBER
这对我有用。我们在 API 文档中也有示例。
GET https://api.linkedin.com/rest/networkSizes/urn:li:organization:1234567?edgeType=COMPANY_FOLLOWED_BY_MEMBER