简体   繁体   English

发布在LinkedIn API v2中提供

[英]Posting to feed in LinkedIn API v2

Does LinkedIn API V2 allows to post on feed? LinkedIn API V2是否允许发布Feed? I trying to use /shares and /ugcPosts endpoints but my item published only in Activity section of my profile, not on my feed. 我尝试使用/ shares和/ ugcPosts端点,但我的项目仅在我的个人资料的“活动”部分发布,而不是在我的Feed中发布。

That is my request body 那是我的请求机构

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

If you've submitted a POST /ugcPosts and you receive a 201 response, your post has been created on your feed. 如果您已提交POST / ugcPosts并收到201回复,那么您的帖子已在Feed中创建。 You should also receive the ugcPost id as part of the header response. 您还应该接收ugcPost id作为标头响应的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM