ResultsDirect / LinkedIn-iPhone

Simple framework to provide authentication and API support for LinkedIn on iPhoneOS devices.
74 stars 27 forks source link

LinkedIn API and Authentication for iPhoneOS

LinkedIn has joined the growing number of social networking sites with public APIs. Since many of our clients are professional organizations, it seemed natural to take advantage of that venue in our applications, especially mobile ones. Since no one had build an Objective-C / iPhone client library yet, we began work on our own. (The options are a little broader now, but we were happy to be among the pioneers.)

This code is still young: it will allow your application to authenticate a user to the API via OAuth, and to post status updates, but that's about it. Because we wanted to introduce as few external dependencies as possible, this code manages its own HTTP connections, and does its own XML parsing. As the API support becomes more complete, that's something we may need to revisit. (So if anyone else uses this code, it would be useful to know what other libraries you're using.)

HOWTO

The demo application will require you to fill in your API and Secret keys from LinkedIn. If you don't have an application registered yet, then go sign up for one now.

When you register your app with LinkedIn, please be sure that you configure it properly.

For now, the best reference in terms of how to configure your project is the demo itself. It's pretty straightforward, but these items deserve special mention:

TODO

Credits

This work owes a debt of gratitude to Ben Gottlieb and his Twitter+OAuth code, which inspired the authentication portion, and to Matt Gemmell's MGTwitterEngine for some ideas about how to structure the API portion. Thanks for all your hard work, and making it Open Source!

http://github.com/bengottlieb/Twitter-OAuth-iPhone http://github.com/mattgemmell/MGTwitterEngine

Included in this project is Ben Gottlieb's snapshot of Kaboomerang's OAuthConsumer library from Google Code, with his addition of an iPhone library project file, and the pin property on the OAToken class. The original code can be found here:

http://code.google.com/p/oauth/

More recently, we're incorporated changes from some other developers who have been improving the library over the year since we released it:

History

License

Copyright © 2010-2011, Results Direct All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.