Linkedin API - UGCPost 视频 url 丢失
Linkedin API - UGCPost Video url is missing
我正在使用以下端点来获取帖子
https://api.linkedin.com/v2/ugcPosts?q=authors&authors[0]=urn:li:organization:XXXX&count=100&start=0
"media": [{
"recipes": [
"urn:li:digitalmediaProcessedAsset:(urn:li:digitalmediaAsset:XXXXXXXXXX,urn:li:digitalmediaRecipe:feedshare-video-captions-thumbnails)"
],
"media": "urn:li:digitalmediaAsset:XXXXXXXXXX",
"thumbnails": [],
"status": "READY"
}]
我只能看到 digitalmedia 资产,但找不到原始 Url 喜欢分享 url 喜欢
注意:对于图片,我们使用的是原图Url
使用投影帮助解决了这个问题
https://api.linkedin.com/v2/ugcPosts?q=authors&authors[0]=urn:li:organization:XXXXX&count=100&projection=(paging,elements*(name,localizedName,vanityName,created(actor~(localizedFirstName, localizedLastName)),lastModified(actor~(localizedFirstName, localizedLastName)),specificContent(com.linkedin.ugc.ShareContent(shareMediaCategory,shareCommentary,media(*(media~:playableStreams,originalUrl,description,title))))))
投影参数截至 2020 年 2 月有效
(paging,elements*(id,created,lastModified,author,specificContent(com.linkedin.ugc.ShareContent(shareMediaCategory,shareCommentary,media(*(media~:playableStreams,originalUrl,description,title))))))
我正在使用以下端点来获取帖子
https://api.linkedin.com/v2/ugcPosts?q=authors&authors[0]=urn:li:organization:XXXX&count=100&start=0
"media": [{
"recipes": [
"urn:li:digitalmediaProcessedAsset:(urn:li:digitalmediaAsset:XXXXXXXXXX,urn:li:digitalmediaRecipe:feedshare-video-captions-thumbnails)"
],
"media": "urn:li:digitalmediaAsset:XXXXXXXXXX",
"thumbnails": [],
"status": "READY"
}]
我只能看到 digitalmedia 资产,但找不到原始 Url 喜欢分享 url 喜欢
注意:对于图片,我们使用的是原图Url
使用投影帮助解决了这个问题
https://api.linkedin.com/v2/ugcPosts?q=authors&authors[0]=urn:li:organization:XXXXX&count=100&projection=(paging,elements*(name,localizedName,vanityName,created(actor~(localizedFirstName, localizedLastName)),lastModified(actor~(localizedFirstName, localizedLastName)),specificContent(com.linkedin.ugc.ShareContent(shareMediaCategory,shareCommentary,media(*(media~:playableStreams,originalUrl,description,title))))))
投影参数截至 2020 年 2 月有效
(paging,elements*(id,created,lastModified,author,specificContent(com.linkedin.ugc.ShareContent(shareMediaCategory,shareCommentary,media(*(media~:playableStreams,originalUrl,description,title))))))