Sha256: 0b5e767d22f97d889b716f025753abd72ef5c58cce3a0a5c6a5a229a75018a8d

Contents?: true

Size: 678 Bytes

Versions: 27

Compression:

Stored size: 678 Bytes

Contents

# http://developer.linkedin.com/docs/DOC-1008
# https://www.linkedin.com/secure/developer
# http://github.com/pengwynn/linkedin/tree/master/lib/linked_in/
class LinkedInToken < OauthToken
  
  key do |access_token|
    body = access_token.get("https://api.linkedin.com/v1/people/~:(id)").body
    id = body.gsub("<id>([^><]+)</id>", "\\1") # so we don't need to also import nokogiri
    id
  end
  
  settings "https://api.linkedin.com",
    :request_token_path => "/uas/oauth/requestToken",
    :access_token_path  => "/uas/oauth/accessToken",
    :authorize_path     => "/uas/oauth/authorize",
    :http_method        => "get",
    :scheme             => :query_string
  
end

Version data entries

27 entries across 27 versions & 9 rubygems

Version Path
robdimarco-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
anideo-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
jspooner-authlogic-connect-0.0.20 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
jspooner-authlogic-connect-0.0.19 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
foreverman-authlogic-connect-0.0.4 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
foreverman-authlogic-connect-0.0.3 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
foreverman-authlogic-connect-0.0.2 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
foreverman-authlogic-connect-0.0.1 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
foreverman-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
passport-0.1.1 lib/passport/oauth/tokens/linked_in_token.rb
authlogic-connect-andrewacove-0.5.7 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
authlogic-connect-0.0.5.1 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
authlogic-connect-0.0.5 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
authlogic-connect-andrewacove-0.5.6 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
authlogic-connect-andrewacove-0.5.5 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
authlogic-connect-andrewacove-0.5.4 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
authlogic-connect-andrewacove-0.5.2 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
authlogic-connect-andrewacove-0.5.0 lib/authlogic_connect/oauth/tokens/linked_in_token.rb
authlogic-connect-0.0.4.06 lib/authlogic_connect/oauth/tokens/linked_in_token.rb