Created
June 4, 2012 18:18
-
-
Save rstackhouse/2870001 to your computer and use it in GitHub Desktop.
Tyring to use LinkedIn Gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'linkedin' | |
client = LinkedIn::Client.new('api_key', 'api_secret') | |
rtoken = client.request_token.token | |
rsecret = client.request_token.secret | |
puts client.request_token.authorize_url | |
pin = gets | |
client.authorize_from_request(rtoken, rsecret, pin) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you have your api_key and api_secret on line 4?
additional_authorization_required
is the problem.