如何获取所有喜欢我们页面帖子的次数,实际上我们已经创建了一个页面并发布了一些文章。现在,我想使用API检索帖子的所有赞,可以从Postman获得访问令牌。 当我运行V2 API通过Poastman获取数据时,出现以下错误: “ 权限不足,无法访问:GET / socialActions / ”。 请告知需要更多的权限。
在邮递员的Auth导航下从邮递员获取OAuth2.0的访问令牌。获取访问令牌后,运行https://api.linkedin.com/v2/socialActions/ {activity} 我收到以下错误 { “ serviceErrorCode”:65604, “ message”:“空的oauth2访问令牌”, “状态”:401 }
我在其他系统的邮递员中使用过,然后发现以下错误: { “ serviceErrorCode” :、 “ message”:“权限不足,无法访问:GET / socialActions /”, “状态”:401 }
应该是JSON格式的结果数据
答案 0 :(得分:0)
以下是样品请求
https://api.linkedin.com/v2/organizationalEntityShareStatistics?q=organizationalEntity&organizationalEntity=urn:li:organization:xxxxxx&shares=urn:li:share:xxxxxxxxx&count=1000
样本响应:
{
"elements": [
{
"totalShareStatistics": {
"shareCount": 2,
"clickCount": 1,
"engagement": 10,
"likeCount": 5,
"impressionCount": 7,
"commentCount": 5
},
"share": "urn:li:share:xxxxxx",
"organizationalEntity": "urn:li:organization:xxxxx"
}
],
"paging": {
"count": 1000,
"start": 0,
"links": []
}
}
答案 1 :(得分:0)
出现权限错误,如何在#LinkedIn中添加权限。
错误: { “ serviceErrorCode”:100, “ message”:“权限不足,无法访问:GET-organizationalEntity / organizationalEntityShareStatistics”, “状态”:403 }
请提出建议!