在检索评论的社交行为摘要时,LinkedIn API似乎返回了错误的值。
我对GET
发出了https://api.linkedin.com/v2/socialActions/urn%3Ali%3Acomment%3A%28urn%3Ali%3Aactivity%3A6546403695196811264%2C6546405316437790720%29
请求
这是API响应正文:
{
'commentsSummary': {
'totalFirstLevelComments': 0,
'aggregatedTotalComments': 0
},
'$URN': 'urn:li:comment:(urn:li:activity:6546403695196811264,6546405316437790720)',
'likesSummary': {
'likedByCurrentUser': False,
'aggregatedTotalLikes': 0,
'totalLikes': 0
},
'target': 'urn:li:comment:(urn:li:activity:6546403695196811264,6546405316437790720)'
}
以及预期的响应主体:
{
'commentsSummary': {
'totalFirstLevelComments': 3,
'aggregatedTotalComments': 3
},
'$URN': 'urn:li:comment:(urn:li:activity:6546403695196811264,6546405316437790720)',
'likesSummary': {
'likedByCurrentUser': True,
'aggregatedTotalLikes': 2,
'totalLikes': 2
},
'target': 'urn:li:comment:(urn:li:activity:6546403695196811264,6546405316437790720)'
}
以下是响应标题,可帮助LinkedIn团队进行调试:
{
'X-LI-ResponseOrigin': 'RGW',
'Content-Type': 'application/json',
'X-RestLi-Protocol-Version': '2.0.0',
'Content-Length': '327',
'Date': 'Tue, 18 Jun 2019 11:49:38 GMT',
'X-Li-Fabric': 'prod-lor1',
'Connection': 'keep-alive',
'X-Li-Pop': 'prod-efr5',
'X-LI-Proto': 'http/1.1',
'X-LI-UUID': 'i07XV5tIqRWAdyFKiSsAAA==',
'Set-Cookie': 'lidc="b=OB36:g=1847:u=345:i=1560858577:t=1560936475:s=AQEK0vHcIcV0LWfWF-E4uJW6AanRPr4r"',
'X-LI-Route-Key': '"b=OB36:g=1847:u=345:i=1560858577:t=1560936475:s=AQEK0vHcIcV0LWfWF-E4uJW6AanRPr4r"'
}
关于API响应的任何解释吗?
最诚挚的问候。