通过REST API(v2)将文章发布到公司LinkedIN页面 [英] Post an article to company LinkedIN page via REST api (v2)
问题描述
使用LinkedIn REST API v2,我正在寻找一种将文章发布到我公司的LinkedIn页面的方法.
Using v2 of LinkedIn REST API I'm searching for a way to post an article to my company's LinkedIn page.
我已经在此处注册 https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner/marketing-developer-program ,目前正在等待批准.
I've signed up here https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner/marketing-developer-program and currently waiting to be approved.
我希望能够在我的公司网站上创建一个博客文章,当我按发布"时,我希望将该文章作为文章发布到我公司的LinkedIn页面.
I want to be able to create a blog post on my company website and when i press 'publish' i want to post that blog post, as an article, to my companys LinkedIn page.
The closest i've been to finding information regarding this topic is https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/articles-api But this does not disclose any information for posting articles, only retrieving and deleting them
推荐答案
您可以使用内容实体(contentlocation和缩略图)将文章共享到LinkedIn公司feed中.您还可以为要分享的文章提供标题和说明.
You can share articles to your LinkedIn company feed using content entities (contentlocation and thumbnail). You can also provide a title and description for the article you want to share.
与文章共享的示例如下:
An example of a share with article is as follows:
{
"owner": "urn:li:organization:12345",
"content": {
"contentEntities": [{
"entityLocation": "https://www.example.com/content.html",
"thumbnails": [{
"resolvedUrl": "https://www.example.com/image.jpg"
}]
}],
"description": "content description",
"title": "Test Company Share with Content"
},
"text": {
"text": "This is a share with an article"
}
}
此API端点的文档可以在这里找到:
Documentation for this API endpoint can be found here:
希望有帮助!
这篇关于通过REST API(v2)将文章发布到公司LinkedIN页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!