【问题标题】:Comment on a post using linkedin api returns 403 Although i have all permissions required使用linkedin api评论帖子返回403虽然我拥有所需的所有权限
【发布时间】:2020-06-06 12:13:18
【问题描述】:

我正在尝试使用 SocailActions Api 对帖子发表评论
我正在使用以下权限 w_organization_social r_organization_social w_member_social
并且我以我试图代表其发表评论的页面的管理员身份登录
我的要求是:

POST https://api.linkedin.com/v2/socialActions/urn%3Ali%3Ashare%3AXXXXXXXXXX/comments HTTP/1.1

Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXX
Host: api.linkedin.com
cache-control: no-cache,
X-Restli-Protocol-Version: 2.0.0
Accept: application/json
Content-Type: application/json
Content-Length: 136

{
   "actor":"urn:li:organization:23741470",
  "object" :"urn:Al:share:6664163994204549120",
   "message":{
      "text":"tessst"
   }
}

我得到 403

{
    "serviceErrorCode": 100,
    "message": "Field Value validation failed in REQUEST_BODY: Data Processing Exception while processing fields [/actor]",
    "status": 403
}

当我尝试使用 ugcPost Api 发布新评论时发生了同样的事情 有什么想法可能导致这种情况吗?

【问题讨论】:

    标签: https oauth linkedin linkedin-api


    【解决方案1】:

    我终于能够解决这个问题,我删除了除内容类型和内容长度之外的所有标题属性然后它工作了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多