使用Linkedin API v2获取帖子分析 [英] Get Post Analytics with Linkedin API v2
问题描述
最近,我正在使用Linkedin API v2,但在使用方面存在一些问题
Recently, I am working on Linkedin API v2 and I have some problems with
- 获取某公司的职位
- 获取特定帖子的分析
我可以使用https://api.linkedin.com/v2/organizationPageStatistics?q=organization&organization={organization URN}
但是我找不到任何API来获取上述信息.
But I can't find any API to get the above info.
请帮助我解决以上问题. 预先感谢您的任何建议.
Please help me to resolve above problem. Thanks in advance for any advices.
推荐答案
获取 https://api.linkedin.com/v2/shares?q=owners& ; owners = {URN}& sharesPerOwner = 100
GET https://api.linkedin.com/v2/shares?q=owners&owners={URN}&sharesPerOwner=100
{
"activity": "urn:li:activity:12345657",
"content": {
"contentEntities": [
{
"entity": "urn:li:article:0",
"entityLocation": "https://www.example.com/content.html",
"thumbnails": [
{
"imageSpecificContent": {},
"resolvedUrl": "https://www.example.com/image.jpg"
}
]
}
],
"description": "content description",
"title": "Test Share with Content"
},
"created": {
"actor": "urn:li:person:A8xe03Qt10",
"time": 1471967236000
},
"distribution": {
"linkedInDistributionTarget": {}
},
"id": "6173878065928642560",
"lastModified": {
"actor": "urn:li:person:A8xe03Qt10",
"time": 1471967237000
},
"owner": "urn:li:organization:1000",
"text": {
"text": "Test Share!"
} }
关于分析,您可以使用获取社交行为" API的摘要:
And about the analytics you can use the Retrieve a Summary of Social Actions API:
获取 https://api.linkedin.com/v2/socialActions/ {shareUrn | ugcPostUrn | commentUrn}
GET https://api.linkedin.com/v2/socialActions/{shareUrn|ugcPostUrn|commentUrn}
{
"commentsSummary": {
"totalFirstLevelComments": 4,
"aggregatedTotalComments": 9
},
"$URN": "urn:li:activity:6296748651834277888",
"likesSummary": {
"likedByCurrentUser": false,
"totalLikes": 226
}
}
希望获得帮助
这篇关于使用Linkedin API v2获取帖子分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!