29
LinkedIn OAuth for curious people

Linkedin OAuth for curious people

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

Page 1: Linkedin OAuth for curious people

LinkedIn OAuthfor curious people

Page 3: Linkedin OAuth for curious people

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

Page 4: Linkedin OAuth for curious people

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

Page 5: Linkedin OAuth for curious people

GO TO DEVELOPER.LINKEDIN.COMSELECT API KEYS

Page 6: Linkedin OAuth for curious people

LinkedIn OAuth API Key

API Key:  q84d384ieign

Secret Key:  xLHaddPBLd4jnPvo

Don't share this secret with anyone

Page 7: Linkedin OAuth for curious people

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

Page 8: Linkedin OAuth for curious people

LinkedIn OAuth URLs

Page 9: Linkedin OAuth for curious people

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

Page 10: Linkedin OAuth for curious people

URL encode for OAuth

Page 11: Linkedin OAuth for curious people

Prepare parameters

Page 12: Linkedin OAuth for curious people

Prepare parameters

Page 13: Linkedin OAuth for curious people

Make the network call

Page 14: Linkedin OAuth for curious people

Get the response

Page 15: Linkedin OAuth for curious people

Parse and store token

Page 16: Linkedin OAuth for curious people

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

Page 17: Linkedin OAuth for curious people

Redirect & pass token

Page 18: Linkedin OAuth for curious people

Allow authorization

Page 19: Linkedin OAuth for curious people

Redirect back to file

Page 20: Linkedin OAuth for curious people

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

Page 21: Linkedin OAuth for curious people

Prepare call again

Page 22: Linkedin OAuth for curious people

Prepare call again

Page 23: Linkedin OAuth for curious people

Get the access token

Page 24: Linkedin OAuth for curious people

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

Page 25: Linkedin OAuth for curious people

Use people API

Page 26: Linkedin OAuth for curious people

Prepare parameters

Page 27: Linkedin OAuth for curious people

Get the response

Page 28: Linkedin OAuth for curious people

WOW - We did it!

Page 29: Linkedin OAuth for curious people

Have a go yourself: https://github.com/rorycawley/no-library-php-linkedin-OAuth