当我使用socialActions
端点检索linkedin共享的社交操作时,我正在使用投影来获取displayImage~
的演员信息。但它会抛出以下错误,
“displayImage!” :{ “serviceErrorCode”:100, “message”:“没有足够的权限访问:GET-playableStreams / assets / C4E03AQH57nd5w5cWUw / mediaArtifactPublicUrls”, “身份”:403 }
用于获取社交行为的查询是,
curl 'https://api.linkedin.com/v2/socialActions/urn:li:share:543222277889832/comments?projection=(elements*(*,actor~(*,id,vanityName,profilePicture(displayImage~:playableStreams))))&oauth2_access_token=xxx'
当我使用person
端点获取人员详细信息时,我可以获得displayImage~
响应。请有人帮我解决这个问题。
答案 0 :(得分:0)
LinkedIn更新了the docs' section关于获取显示图像的信息:
GET https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,profilePicture(displayImage~:playableStreams))
我已经尝试过了,现在对我有用。请注意,我正在通过Authorization
HTTP标头传递访问令牌:
export ACCESS_TOKEN=xxx
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
'https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,maidenName,profilePicture(displayImage~:playableStreams))'