Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Linkedin OAuth for curious people

2,924 views

Published on

A deeper dive at using OAuth 1.0a with the Linkedin APIs. Single php file for everything.

Learn OAuth 1.0a insights.

  • Be the first to comment

Linkedin OAuth for curious people

  1. 1. LinkedIn OAuthfor curious people
  2. 2. linkedin.com/in/rorycawleytwitter.com/rorycawley
  3. 3. LinkedIn OAuth forcurious peopleAbsolutely DO use an OAuth library (see greatexamples developer.linkedin.com)Search ‘LinkedIn OAuth’ for great codeThis deck is if you want to know nuts and bolts ofusing OAuth 1.0a to call LinkedIn APIThis deck is only for the those who are REALLYcurious 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
  4. 4. 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
  5. 5. GO TO DEVELOPER.LINKEDIN.COMSELECT API KEYS
  6. 6. LinkedIn OAuth API KeyAPI Key:  q84d384ieignSecret Key:  xLHaddPBLd4jnPvoDont share this secret with anyone
  7. 7. 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
  8. 8. LinkedIn OAuth URLs
  9. 9. 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
  10. 10. URL encode for OAuth
  11. 11. Prepare parameters
  12. 12. Prepare parameters
  13. 13. Make the network call
  14. 14. Get the response
  15. 15. Parse and store token
  16. 16. 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
  17. 17. Redirect & pass token
  18. 18. Allow authorization
  19. 19. Redirect back to file
  20. 20. 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
  21. 21. Prepare call again
  22. 22. Prepare call again
  23. 23. Get the access token
  24. 24. 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
  25. 25. Use people API
  26. 26. Prepare parameters
  27. 27. Get the response
  28. 28. WOW - We did it!
  29. 29. Have a go yourself:https://github.com/rorycawley/no-library-php-linkedin-OAuth

×