简体   繁体   English

显示个人资料数据LinkedIn Api无需身份验证

[英]Display profile data LinkedIn Api without authentication

Quick questions, but can I display profile data from my own LinkedIn page on a website through the JavaScript SDK, without having the user login through the authentication layer ? 快速提问,但是我可以通过JavaScript SDK在网站上显示自己的LinkedIn页面上的个人资料数据,而无需用户通过身份验证层登录吗?

I don't want to display any other information other than from my profile, I was under the impression this is possible without a user logging in. 我不想显示个人信息以外的任何其他信息,给我的印象是,无需用户登录就可以实现。

https://developer.linkedin.com/docs/js-sdk https://developer.linkedin.com/docs/js-sdk

I have connected correctly: 我已正确连接:

<script type="text/javascript" src="//platform.linkedin.com/in.js">
    api_key: xxxXXXxxxXXXxxx
    onLoad: linkedInLoaded
</script>

but then using the follow: 但是,请使用以下命令:

IN.API.Profile("me").fields([]);

Tells me I require authentication. 告诉我我需要身份验证。

Hi @CHEWX I misunderstood your original question. 嗨@CHEWX,我误解了您的原始问题。 Yes, you are correct, what you are trying to do is not possible. 是的,您是正确的,您无法做的事情。 What are you looking for is the ability to make an unauthenticated call to pull any random profile (and for your use-case, you would always be pulling your own profile). 您要寻找的是能够进行未经身份验证的调用以提取任何随机概要文件的功能(对于您的用例,您始终会提取自己的概要文件)。 However, LinkedIn does not have any unauthenticated APIs available. 但是,LinkedIn没有可用的未经身份验证的API。

The only thing that comes close to what you are looking for is a drop-in plugin which you can find here: https://developer.linkedin.com/plugins/member-profile 唯一与您要寻找的内容相近的是一个可在此处找到的插件: https : //developer.linkedin.com/plugins/member-profile

You could build some service that makes an authenticated REST call to pull your profile every so often, and then push the updated profile info to wherever you are saving it to display it on your website. 您可以构建一些服务,该服务进行经过身份验证的REST调用,以经常提取您的个人资料,然后将更新的个人资料信息推送到您要保存的任何位置,以在网站上显示它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM