Sha256: ee9d9f45d3d78aeecf7b60e5576413bc83956e4fb1fc684f9a0b0e40985fe0b9

Contents?: true

Size: 773 Bytes

Versions: 12

Compression:

Stored size: 773 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

12 entries across 12 versions & 2 rubygems

Version Path
linkedin-0.3.6 examples/authenticate.rb
linkedin-0.3.5 examples/authenticate.rb
linkedin-0.3.4 examples/authenticate.rb
linkedin-0.3.3 examples/authenticate.rb
linkedin-0.3.2 examples/authenticate.rb
linkedin-bdigital-0.2.2.3 examples/authenticate.rb
linkedin-0.3.1 examples/authenticate.rb
linkedin-bdigital-0.2.2.2 examples/authenticate.rb
linkedin-bdigital-0.2.2.1 examples/authenticate.rb
linkedin-bdigital-0.2.2 examples/authenticate.rb
linkedin-0.2.2 examples/authenticate.rb
linkedin-0.2.1 examples/authenticate.rb