简体   繁体   English

我可以使用他们的 API 显示我的 LinkedIn 个人资料信息吗?

[英]Can I show my LinkedIn profile information using their API?

so, long story short, I'm working on my portfolio and I want to retrieve my LinkedIn recommendations from my profile, I googled but all I could find was about retrieving info from logged-in users using OAuth, is there a way to get a personal API key to retrieve my profile's info for everyone to see on my portfolio?所以,长话短说,我正在研究我的投资组合,我想从我的个人资料中检索我的 LinkedIn 推荐,我用谷歌搜索,但我能找到的只是使用 OAuth 从登录用户那里检索信息,有没有办法获得个人API密钥来检索我的个人资料信息,供所有人在我的投资组合中查看?

I don't think this is important but I'm using React.我不认为这很重要,但我正在使用 React。

I hope I made myself clear, I'd appreciate your help!我希望我说清楚了,我会感谢你的帮助!

Well, when you do the 2-legged OAuth flow, you receive a response that includes an access_token that you can use to make api requests.好吧,当您执行 2-legged OAuth 流时,您会收到一个响应,其中包含一个 access_token,您可以使用它来发出 api 请求。 Here is the documentation. 是文档。

So in your react site, whenever you fail the request (which means your access token expired), you can just resend the request and get the new access token.因此,在您的反应站点中,只要您的请求失败(这意味着您的访问令牌已过期),您就可以重新发送请求并获取新的访问令牌。 This access token acts like an api key, and the 2-legged OAuth flow can be entirely automated without user intervention.此访问令牌的作用类似于 api 密钥,而 2 腿 OAuth 流程可以完全自动化,无需用户干预。 These tokens have a 30 minute lifespan, so maybe you can just set an interval to fire every 30 minutes to refresh the token.这些令牌有 30 分钟的生命周期,所以也许您可以设置一个间隔,每 30 分钟触发一次以刷新令牌。

暂无
暂无

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

相关问题 我可以通过API获得Linkedin个人资料的活动状态吗? - Can I get Linkedin profile active status via API? 我可以仅通过一个 api 请求获取linkedin 的名字、姓氏、电子邮件和个人资料图片吗? - Can I fetch firstname,lastname,email and profile picture of linkedin with only one api request? 检索有关 LinkedIn 帐户的所有个人资料信息 - Retrieve all profile information about a LinkedIn Account 我在尝试通过 API 显示我的信息时遇到此错误 - i am getting this errors while trying to show my information through the API 如何使用 map() 从 API 显示我的数据? - How can I use map() to show my datas from API? 如何显示列表对象的信息 - how can I show the information of a list object 如何在ReactJS中使用搜索框时显示来自API的信息? - How to show information from API when using search box in ReactJS? 我想使用 react hook 'useState' 来保存从 API 获取的信息并显示在屏幕上。 但是,我不能在 class 中使用,我该怎么办? - I want to use react hook 'useState' to save the information fetched from API and show on the scrren. But, I can't use in class so what can I do? 使用rest api将个人资料图片从我的react js上传到我的django服务器时遇到问题,我使用cloudinary来存储我上传的所有图片 - Am having problem uploading a profile picture from my react js to my django server using rest api , i use cloudinary to store all my image upload 我无法使用 react 和 web3 从我的solidity 智能合约中检索一致的信息 - I can't retrieve consistent information from my solidity smart contract using react and web3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM