本文介绍了创建指向 LinkedIn 公司更新的直接 url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在网站上实施公司新闻源,但遇到了以下问题.LinkedIn API 不提供公司更新的直接 URL.查看 LinkedIn 站点,有直接 URL,例如:https://www.linkedin.com/company/1441/comments?topic=5849556347070205952&type=U&scope=1441&stype=C&a=5uHW&goback=%2Ebzo_*1_*1_*1_*1_*1_*1_*1_1441

I'm implementing a Compony newsfeed on a website and ran into the following problem. The LinkedIn API doesn't provide a direct URL to a company update. Looking at the LinkedIn site there are direct URL's and they're like this for example:https://www.linkedin.com/company/1441/comments?topic=5849556347070205952&type=U&scope=1441&stype=C&a=5uHW&goback=%2Ebzo_*1_*1_*1_*1_*1_*1_*1_1441

尝试一下,似乎参数主题、类型、范围、stype 和 a 是 URL 工作所必需的..(goback 是唯一一个不是).

Trying stuff out it seems that the parameters topic, type, scope, stype and a are mandatory for the URL to work.. (goback is the only one that isn't).

通过 公司更新调用使用 LinkedIn API构建直接 url,除了 a 参数.该值始终为 4 个(对我来说无法解释)字符长.

Using the LinkedIn API with the Company updates call I'm able to buid the direct url, except for the a parameter. The value is always 4 (for me unexplainable) characters long.

有没有人成功建立一个指向公司更新的直接 URL 或者有人可以解释 a 参数或如何生成它的值?

Has anyone ever successfully build a direct URL to a company update or can someone maybe explain the a parameter or how to generate its value?

推荐答案

更新为新格式

您可以使用以下网址直接链接到任何更新(公司或用户):

Updated to new format

You can link directly to any update (company or user) using the following url:

https://www.linkedin.com/feed/update/urn:li:activity:[topic_id]

你可以通过在api中获取updateKey的最后一位来获取[topic_id]来自 Linkedin 的回复.当 updateKey = UPDATE-c7352-6410848097894756353 时,您的 topic_id = 6410848097894756353.

You can get [topic_id] by getting the last bit of the updateKey in the api response from Linkedin. When updateKey = UPDATE-c7352-6410848097894756353, your topic_id = 6410848097894756353.

在您的示例中,将变为 https://www.linkedin.com/feed/update/urn:li:activity:5849556347070205952 直接链接到特定更新.帖子太旧,无法使用新链接格式

In your example that would become https://www.linkedin.com/feed/update/urn:li:activity:5849556347070205952 which links directly to the specific update. The post is too old to work with the new link format

以前的网址

https://www.linkedin.com/nhome/updates/?topic=[topic_id]

更新感谢@sethpollack 的评论

Updated thanks to the comment from @sethpollack

这篇关于创建指向 LinkedIn 公司更新的直接 url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 04:03