如何从PHP中的Linkedin公司URL获取公司ID? [英] How to get the company id from Linkedin Company URL in PHP?

查看:120
本文介绍了如何从PHP中的Linkedin公司URL获取公司ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Linkedin公司网址如下,

  http://in.linkedin.com/company/abb 

,ABB Limited的公司编号为 277579 。基本上你也可以通过 http://www.linkedin.com/company/277579 到达ABB。



但是,如果我只有 http://in.linkedin.com/company/abb 。可以通过这个URL获取公司ID吗?解析URL有帮助吗?寻求任何好的方法来获取公司ID。



有没有其他方法可以不使用Linkedin API?



<希望我明白我的问题。任何帮助将不胜感激。

解决方案

在自动填充字段中键入您的公司名称。等到您的公司名称显示为结果。然后点击您的公司名称。点击获取代码。

 < script src =// platform.linkedin.com/in.jstype =text / javascript> ; lang:en_US< / script> 
< script type =IN / FollowCompanydata-id =162479data-counter =top>< / script>

例如 data-id =162479是Apple公司页面的ID



https://developer.linkedin.com/plugins/follow-company


I have the Linkedin company URL as follows,

http://in.linkedin.com/company/abb

and the company ID for ABB limited is 277579. Essentially you can also reach ABB through http://www.linkedin.com/company/277579.

But if I have only http://in.linkedin.com/company/abb. Is it possible to get the company ID through this URL? Does parsing the URL help? Seeking any good method to get the company ID.

Is there any other way to do without using Linkedin API?

Hope I am clear with my question. Any help would be appreciated.

解决方案

Type in your company name in the autocomplete field. Wait until your company name appears as a result. Then click on your company name. Click on Get Code.

<script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>
<script type="IN/FollowCompany" data-id="162479" data-counter="top"></script>

e.g. data-id="162479" is the ID for Apple Company Page

https://developer.linkedin.com/plugins/follow-company

这篇关于如何从PHP中的Linkedin公司URL获取公司ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆