xcode 如何在 iPhone SDK 中使用 LinkedIn API?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2346698/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:09:07  来源:igfitidea点击:

How to use LinkedIn API in iPhone SDK?

objective-cxcodeiphone-sdk-3.0linkedin

提问by Rahul Vyas

I want to use the LinkedInAPI in my project, but I haven't found any good tutorials about using LinkedIn API. How to use LinkedIn API?

我想在我的项目中使用LinkedInAPI,但我还没有找到任何关于使用 LinkedIn API 的好教程。如何使用领英 API?

"A beginners guide/introduction" of "basic concepts" would be helpful.

“基本概念”的“初学者指南/介绍”会有所帮助。

OK, after googleing around I went to this link LinkedInAPI.

好的,在谷歌搜索之后我去了这个链接LinkedInAPI

I filled in the form but I am unable to understand what the "Integration URL" (Example URL where the integration will go live.)

我填写了表格,但我无法理解“集成 URL”是什么(集成将上线的示例 URL。)

Because I want to use LinkedIn in native iPhone application not on any website?

因为我想在本地 iPhone 应用程序中使用 LinkedIn 而不是在任何网站上?

So after getting keys how do I use those keys and how do I authenticate user and get some profile info,post status like all the things?

因此,在获得密钥后,我如何使用这些密钥以及如何验证用户身份并获取一些个人资料信息、发布状态等所有内容?

I know for authentication there is an Objective-C wrapper MPOAuthMobile. I have also downloaded that but unable to understand. What this cumbersome API uses?

我知道身份验证有一个 Objective-C 包装器MPOAuthMobile。我也下载了,但是看不懂。这个繁琐的 API 使用什么?

回答by jeyben

I haven't been able to find a stable library/code-example that helped me get access to the LinkedIn api from a native iOS application.

我一直找不到稳定的库/代码示例来帮助我从本机 iOS 应用程序访问 LinkedIn api。

That′s why I created this small library and published it at github: https://github.com/jeyben/IOSLinkedInAPI

这就是我创建这个小库并将其发布在 github 上的原因:https: //github.com/jeyben/IOSLinkedInAPI

The library is also available as a cocoapod if you are interested: http://cocoapods.org/?q=IOSLinkedInAPI

如果您有兴趣,该库也可用作 cocoapod:http://cocoapods.org/?q=IOSLinkedInAPI

IOSLinkedInAPI uses OAuth2 and helps you get an accessToken which is needed to actually call the LinkedIn Rest API.

IOSLinkedInAPI 使用 OAuth2 并帮助您获取实际调用 LinkedIn Rest API 所需的 accessToken。