Incorrect sorting on retrieve shares via api.linkedin.com/v2/shares

半世苍凉 提交于 2019-12-10 11:32:12

问题


According to the documentation, shares are ordered by creation time with the most recent share being the first. But when I request shares, they received with sorting by last modified time.

Example: https://www.linkedin.com/company/cadencepcb/

Request:

curl -H "Authorization: Bearer TOKEN" -H "Accept: application/json" "https://api.linkedin.com/v2/shares?owners=urn:li:organization:28610896&q=owners&sharesPerOwner=10&start=0"

Response: receive list of shares with this sequence:

Created: 05/27/2019 8:00pm Modified: 05/27/2019 8:00pm

Created: 06/19/2018 1:00pm Modified: 05/27/2019 3:58pm

Created: 05/27/2019 1:00pm Modified: 05/27/2019 1:01pm

Created: 05/14/2018 1:00pm Modified: 05/27/2019 11:10am

Created: 06/27/2018 2:01pm Modified: 05/27/2019 5:28am

Created: 12/03/2018 2:05pm Modified: 05/27/2019 3:45am

Created: 05/14/2018 8:15pm Modified: 05/27/2019 12:43am

Question: how to receive shares ordered by creation time with the most recent share being the first?

来源:https://stackoverflow.com/questions/56337438/incorrect-sorting-on-retrieve-shares-via-api-linkedin-com-v2-shares

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!