如何使用文本和图像创建linkedin公司共享,但不提交url

如何使用文本和图像创建linkedin公司共享,但不提交url,linkedin,linkedin-api,Linkedin,Linkedin Api,Linkedin API允许创建带有评论和内容的公司共享。 内容通常由提交的图像url和提交的url组成 { "errorCode": 0, "message": "'submitted-url' and 'media-key' can not be both empty", "requestId": ".......", "status": 400, "timestamp": 1470913993683 } 共享将显示为带有图像(提交的图像url)的文

Linkedin API允许创建带有评论和内容的公司共享。 内容通常由提交的图像url和提交的url组成

{
    "errorCode": 0,
    "message": "'submitted-url' and 'media-key' can not be both empty",
    "requestId": ".......",
    "status": 400,
    "timestamp": 1470913993683
}
共享将显示为带有图像(提交的图像url)的文本(注释)。 共享是可单击的,单击将重定向到提交的url

{
    "errorCode": 0,
    "message": "'submitted-url' and 'media-key' can not be both empty",
    "requestId": ".......",
    "status": 400,
    "timestamp": 1470913993683
}
我想创建一个简单的评论和图像共享(提交的图像url),没有参考外部文章

根据服务器响应,如果没有提交url,则无法创建共享

{
    "errorCode": 0,
    "message": "'submitted-url' and 'media-key' can not be both empty",
    "requestId": ".......",
    "status": 400,
    "timestamp": 1470913993683
}
存在未记录的属性媒体密钥。填充此属性时,服务器将响应:

{
    "errorCode": 0,
    "message": "Access to rich media share denied.",
    "requestId": ".......",
    "status": 403,
    "timestamp": 1470914142403
}
API中显然存在允许上传图像的未记录部分

我的问题是:

  • 你们知道有什么方法可以在没有提交url的情况下通过文本发布图片共享吗
  • 您知道在哪里为我们的应用程序请求扩展API权限吗

  • 我通过传递
    提交的url
    提交的图像url
    相同的方式来实现这一点,然后我没有传递
    注释,而是将其作为
    标题传递,因此这篇文章看起来并不好笑。可能不是你想要的答案,但它适用于我的用例,也可能适用于你的用例。哦,将图像的url与注释内联传递,并省略其他值也可以。我不知道第二种方法(将url与注释内联)会起作用。但结果仍然类似于使用提交的url和提交的图像url相同。可悲的是,这不是我想要的。对不起,我不能帮助更多,我也想看到一个适当的解决方案。重复的?