【问题标题】:Linkedin share/ugc post api is not providing posts python requestsLinkedin share/ugc post api 不提供帖子 python 请求
【发布时间】:2021-01-15 03:04:26
【问题描述】:

我正在使用以下端点检索页面中的帖子

https://api.linkedin.com/v2/shares?q=owners&owners=urn:li:organization:xxxxx

尽管总共有 235 个帖子,但得到的是空元素数组

{
    "elements": [],
    "paging": {
        "total": 235,
        "count": 10,
        "start": 0,
        "links": [
            {
                "rel": "next",
                "href": "/v2/shares?count=10&owners=urn:li:organization:XXXXXXX&q=owners&start=0",
                "type": "application/json"
            }
        ]
    }
}

我添加了X-Restli-Protocol-Version : 2.0.0

我在 LinkedIn API 访问令牌中有以下范围

r_organization_social
r_1st_connections_size
r_emailaddress 
r_ads_reporting
rw_organization_admin
r_liteprofile
r_basicprofile
rw_ads
r_ads
w_member_social
w_organization_social

不知道哪里出错了……

我在这里发现了这个问题

Linkedin share/ugc post api is not providing posts

但它只说使用正确的凭据有效 我不太明白他的意思

【问题讨论】:

    标签: python rest get python-requests linkedin-api


    【解决方案1】:

    问题解决

    我只需要管理员访问组织页面...

    【讨论】:

      猜你喜欢
      • 2020-05-01
      • 2021-11-21
      • 1970-01-01
      • 2019-10-23
      • 1970-01-01
      • 2019-07-11
      • 2019-09-22
      • 2013-01-12
      • 1970-01-01
      相关资源
      最近更新 更多