简体   繁体   English

即使它为空,也是必需的linkedInDistributionTarget

[英]linkedInDistributionTarget is required even though it is empty

While posting a share, linkedInDistributionTarget is mandatory field which needs to be included in the body of post request. 发布共享时,linkedInDistributionTarget是必填字段,需要包含在发布请求的正文中。 Even though it is empty Why do we need to include in the body. 即使它是空的,为什么我们也需要包含在体内。

If i am not using that key,Following error is thrown 如果我没有使用该键,则会引发以下错误

{
    "owner": "urn:li:organization:xxxxxx",
    "text": {
        "text": "Hii Kaushik from builder"
    }
}

Error: 错误:

{
    "message": "com.linkedin.restli.client.RestLiResponseException: Response status 400, serviceErrorMessage: com.linkedin.publishing.util.common.ResponseException: Company owned UGCs can only have PUBLIC or LOGGED_IN MemberNetworkVisibility.",
    "status": 400
}

From their docs: 从他们的文档:

"Omitting distribution.linkedInDistributionTarget during share creation creates a dark or hidden share which is not shown publicly on LinkedIn.com. Specify the field as an empty object to make the share publicly viewable." “在共享创建过程中忽略distribution.linkedInDistributionTarget会创建一个深色或隐藏的共享,该共享不会在LinkedIn.com上公开显示。请将字段指定为空对象,以使共享可见。”

Source: 资源:

https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/share-api?context=linkedin/compliance/context#post-shares https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/share-api?context=linkedin/compliance/context#post-shares

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

相关问题 DialogFragment 为空,即使提供了 xml - DialogFragment empty, even though xml provided 即使目录中有文件,DirectoryStream也是空的 - DirectoryStream is empty, even though there is a file in the directory 即使堆栈没有对象,堆栈也不会返回空 - Stack not returning empty even though it has no objects JavaFX “需要位置。” 即使它在同一个 package - JavaFX "Location is required." even though it is in the same package 具有内联ElementList的SimpleXML ValueRequiredException,即使该列表不是必需的且strict为false - SimpleXML ValueRequiredException with inline ElementList, even though the list is not required and strict is false 为什么即使我将某些东西推入堆栈,堆栈仍是空的? - Why is it saying stack is empty even though I push something into it? WebElement getText()返回空字符串,即使元素可见 - WebElement getText() returning empty string even though element is visible Java正则表达式匹配组为空,即使它匹配 - Java regex match group empty even though it matches 为什么单元格值即使包含内容也作为空字符串返回? - Why is a cell value returned as an empty string even though it has content? 即使设置了NON_EMPTY,Jackson也将打印对象 - Jackson printing objects even though NON_EMPTY is set
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM