发布以提要LinkedIn API v2

时间:2019-06-19 15:09:23

标签: php linkedin linkedin-api

LinkedIn API V2是否允许在供稿上发布?我尝试使用/ shares和/ ugcPosts端点,但是我的项目仅发布在我的个人资料的“活动”部分,而不发布在我的Feed中。

那是我的请求正文

   "author" => $urn,
   "lifecycleState" => "PUBLISHED",
   "specificContent" => [
         "com.linkedin.ugc.ShareContent" => [
                "shareCommentary" => [
                        "attributes" => [],
                        "text" => "Some share text"
                 ],
                 "shareMediaCategory" => 'NONE',
          ]
   ],
   "visibility" => [
          "com.linkedin.ugc.MemberNetworkVisibility" => "PUBLIC"
   ]
]'

1 个答案:

答案 0 :(得分:0)

如果您已提交POST / ugcPosts并收到201响应,则表明您的帖子已在Feed中创建。您还应该在标头响应中收到ugcPost ID。