我正在使用 linkedin api 在 linkedin 上分享帖子,如下所示:
How to get make post like this through api:
我正在尝试帖子正文的所有组合,但无法发布如上所述的内容。
{
"comment": "Check out developer.linkedin.com!",
"content": {
"title": "LinkedIn Developers Resources",
"description": "Leverage LinkedIn's APIs to maximize engagement",
"submitted-url": "https://developer.linkedin.com",
"submitted-image-url": "https://example.com/logo.png"
},
"visibility": {
"code": "anyone"
}
}
如果有人为此寻找解决方案,我已经找到了它的窍门。
所以基本上解决方案是将图像网址传递给提交的网址字段并且不通过提交的图像 url范围。
所以不要传递这个:
{
"comment": "Check out developer.linkedin.com!",
"content": {
"title": "LinkedIn Developers Resources",
"description": "Leverage LinkedIn's APIs to maximize engagement",
"submitted-url": "https://developer.linkedin.com",
"submitted-image-url": "https://example.com/logo.png"
},
"visibility": {
"code": "anyone"
}
}
which will give:
您通过以下内容:
{
"comment": "Check out developer.linkedin.com!",
"content": {
"title": "LinkedIn Developers Resources",
"submitted-url": "https://www.example.com/someimage.jpg"
},
"visibility": {
"code": "anyone"
}
}
这将给出:
请注意,我没有通过提交的图像 url and 描述在 json 中。描述不会显示在帖子上,因此没有必要在该字段中传递任何内容。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)