If you want somebody else's picture - query similar to /services/data/v48.0/query?q=SELECT SmallPhotoUrl, FullPhotoUrl FROM User WHERE Id = '005...' should work. Check User fields.{ "totalSize" : 1, "done" : true, "records" : [ { "attributes" : { "type" : "User", "url" : "/services/data/v48.0/sobjects/User/(redacted)" }, "SmallPhotoUrl" : "https://(redacted)/profilephoto/7293L0000008Tfq/T", "FullPhotoUrl" : "https://(redacted)/profilephoto/7293L0000008Tfq/F" } ]}关键是要使用新的端点并在标头中传递会话ID.您甚至可能会发现更容易使用 Chatter API拉照片(也基于REST)The key thing is to use the new endpoint and pass the session id in the header. You might even find it easier to use Chatter API to pull photos (also REST-based) 这篇关于尝试在外部站点上显示用户照片时权限不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-28 19:07