Simple framework to provide authentication and API support for LinkedIn on iPhoneOS devices.
Objective-C C
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 2 commits ahead, 21 commits behind ResultsDirect:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demo
LinkedInClientLibrary
OAuthConsumeriPhoneLib
.gitignore
README

README

LinkedIn API and Authentication for iPhoneOS


LinkedIn recently 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.

This code is still in the early stages: 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.)


The demo application will require you to fill in your API and Secret keys from LinkedIn. Your
app should be designated as a mobile application, and the OAuth Redirect URL *must* be set to:
	http://linkedin_oauth/success



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/



Copyright (c) 2010, 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:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Results Direct nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
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.