Upload
rory-cawley
View
2.628
Download
3
Embed Size (px)
DESCRIPTION
A deeper dive at using OAuth 1.0a with the Linkedin APIs. Single php file for everything. Learn OAuth 1.0a insights.
Citation preview
LinkedIn OAuthfor curious people
linkedin.com/in/rorycawleytwitter.com/rorycawley
LinkedIn OAuth for curious peopleAbsolutely DO use an OAuth library (see great examples developer.linkedin.com)
Search ‘LinkedIn OAuth’ for great code
This deck is if you want to know nuts and bolts of using OAuth 1.0a to call LinkedIn API
This deck is only for the those who are REALLY curious about OAuth 1.0a and LinkedIn API
* BASED ON HTTP://BLOG.THEWEBCAFES.COM/POST/1502524959/PHP-STEP-BY-STEP-OAUTH-FOR-DUMMIES-BASED-ON-LINKEDIN
Step 1: Get your API keyStep 2: Set the LinkedIn URLsStep 3: Get the request tokenStep 4: Redirect to LinkedInStep 5: Get the access tokenStep 6: Call LinkedIn API
GO TO DEVELOPER.LINKEDIN.COMSELECT API KEYS
LinkedIn OAuth API Key
API Key: q84d384ieign
Secret Key: xLHaddPBLd4jnPvo
Don't share this secret with anyone
Step 1: Get your API keyStep 2: Set the LinkedIn URLsStep 3: Get the request tokenStep 4: Redirect to LinkedInStep 5: Get the access tokenStep 6: Call LinkedIn API
LinkedIn OAuth URLs
Step 1: Get your API keyStep 2: Set the LinkedIn URLsStep 3: Get the request tokenStep 4: Redirect to LinkedInStep 5: Get the access tokenStep 6: Call LinkedIn API
URL encode for OAuth
Prepare parameters
Prepare parameters
Make the network call
Get the response
Parse and store token
Step 1: Get your API keyStep 2: Set the LinkedIn URLsStep 3: Get the request tokenStep 4: Redirect to LinkedInStep 5: Get the access tokenStep 6: Call LinkedIn API
Redirect & pass token
Allow authorization
Redirect back to file
Step 1: Get your API keyStep 2: Set the LinkedIn URLsStep 3: Get the request tokenStep 4: Redirect to LinkedInStep 5: Get the access tokenStep 6: Call LinkedIn API
Prepare call again
Prepare call again
Get the access token
Step 1: Get your API keyStep 2: Set the LinkedIn URLsStep 3: Get the request tokenStep 4: Redirect to LinkedInStep 5: Get the access tokenStep 6: Call LinkedIn API
Use people API
Prepare parameters
Get the response
WOW - We did it!
Have a go yourself: https://github.com/rorycawley/no-library-php-linkedin-OAuth