Sha256: 76f01a8d997dfe9f8c4804044672b6b7fe6c6c093643257664b2917724c6ac12

Contents?: true

Size: 774 Bytes

Versions: 15

Compression:

Stored size: 774 Bytes

Contents

require 'rubygems'
require 'linkedin'

# get your api keys at https://www.linkedin.com/secure/developer
client = LinkedIn::Client.new('your_consumer_key', 'your_consumer_secret')
rtoken = client.request_token.token
rsecret = client.request_token.secret

# to test from your desktop, open the following url in your browser
# and record the pin it gives you
client.request_token.authorize_url
=> "https://api.linkedin.com/uas/oauth/authorize?oauth_token=<generated_token>"

# then fetch your access keys
client.authorize_from_request(rtoken, rsecret, pin)
=> ["OU812", "8675309"] # <= save these for future requests

# or authorize from previously fetched access keys
c.authorize_from_access("OU812", "8675309")

# you're now free to move about the cabin, call any API method 

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
linkedin-idkmybffjill-0.2.3 examples/authenticate.rb
linkedin-idkmybffjill-0.2.2 examples/authenticate.rb
linkedin-idkmybffjill-0.2.1 examples/authenticate.rb
linkedin-idkmybffjill-0.2.0 examples/authenticate.rb
linkedin-idkmybffjill-0.1.9 examples/authenticate.rb
holetse-linkedin-0.1.8.1 examples/authenticate.rb
holetse-linkedin-0.1.8 examples/authenticate.rb
linkedin-saimonmoore-0.1.8 examples/authenticate.rb
linkedin-0.1.7 examples/authenticate.rb
linkedin-0.1.6 examples/authenticate.rb
linkedin-0.1.5 examples/authenticate.rb
linkedin-0.1.4 examples/authenticate.rb
linkedin-0.1.3 examples/authenticate.rb
linkedin-0.1.2 examples/authenticate.rb
linkedin-0.1.1 examples/authenticate.rb