Sha256: 514d7db14192182b908ed9c493dde7eef43bbe066ad2b4b00a8ed2e3d9876e20

Contents?: true

Size: 774 Bytes

Versions: 11

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

11 entries across 11 versions & 4 rubygems

Version Path
linkedin-0.4.4 examples/authenticate.rb
linkedin-0.4.3 examples/authenticate.rb
linkedin-0.4.2 examples/authenticate.rb
linkedin-0.4.1 examples/authenticate.rb
linkedin-0.4.0 examples/authenticate.rb
crankin-0.3.8 examples/authenticate.rb
linkedin-0.3.7 examples/authenticate.rb
crankin-0.3.7 examples/authenticate.rb
crankin-0.3.6 examples/authenticate.rb
linkedin-drspin-0.3.6 examples/authenticate.rb
brienw-linkedin-0.3.7 examples/authenticate.rb