[英]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.