将图像发布到个人资料无效的请求参数

问题描述 投票:0回答:1

无法通过共享端点共享图像内容,图像资产通过资产API上传,但是我的共享API请求直接从此处的示例复制而来[​​C0]返回错误,请求正文中的参数无效[/ Headers]请参见下面的详细信息。

https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/share-api?context=linkedin/compliance/context#share-content
linkedin linkedin-api
1个回答
0
投票
看起来错误消息与标题有关。您的请求主体为JSON,但没有设置Request Headers: {Authorization: Bearer *** X-Restli-Protocol-Version: 2.0.0 } Request Body {"content":{"contentEntities":[{"entity":"urn:li:digitalmediaAsset:C5622AQEEn3mmqzCb5w"}],"title":"Great Result","landingPageUrl":"https://google.com.au","shareMediaCategory":"IMAGE"},"distribution":{"linkedInDistributionTarget":{}},"owner":"urn:li:person:zzR_UbXjsG","subject":"Great Result","text":{"text":"Great result, couldn't have gone better #realestate"}} Scopes: scope=r_emailaddress w_member_social w_organization_social r_basicprofile rw_company_admin rw_organization_admin Error: {"serviceErrorCode":100,"message":"Unpermitted fields present in REQUEST_BODY: Data Processing Exception while processing fields [/Headers]","status":403} 标头,因此可能是问题所在:
© www.soinside.com 2019 - 2024. All rights reserved.