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