gpt4 book ai didi

linkedin-api - 领英 v2 API : Cannot get actor displayImage in socialActions endpoint with projections

转载 作者:行者123 更新时间:2023-12-02 19:29:06 25 4
gpt4 key购买 nike

当我使用 socialActions 端点检索 linkedin 共享的社交操作时,我使用 projection 通过 displayImage~ 获取 Actor 信息>。但它抛出以下错误,

"displayImage!" : { "serviceErrorCode" : 100, "message" : "Not enough permissions to access: GET-playableStreams /assets/C4E03AQH57nd5w5cWUw/mediaArtifactPublicUrls", "status" : 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~ 响应。请任何人帮我解决这个问题。

最佳答案

LinkedIn 已更新 the docs' section关于显示图像的获取:

GET https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,profilePicture(displayImage~:playableStreams))

我已经尝试过了,现在对我有用。请注意,我通过 Authorization HTTP header 传递访问 token :

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))'

关于linkedin-api - 领英 v2 API : Cannot get actor displayImage in socialActions endpoint with projections,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50251768/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com