Sha256: 375155972541cb5dea3863a6aaef71cabe0edf542f529211a9f72bf3cf84e15f

Contents?: true

Size: 1.16 KB

Versions: 27

Compression:

Stored size: 1.16 KB

Contents

# http://wiki.developer.myspace.com/index.php?title=Category:MySpaceID
# http://developerwiki.myspace.com/index.php?title=OAuth_REST_API_Usage_-_Authentication_Process
# http://developerwiki.myspace.com/index.php?title=How_to_Set_Up_a_New_Application_for_OpenID
# http://developer.myspace.com/Modules/Apps/Pages/ApplyDevSandbox.aspx
# after you've signed up:
# http://developer.myspace.com/modules/apps/pages/createappaccount.aspx
# "Create a MySpaceID App"
# http://developer.myspace.com/modules/apps/pages/editapp.aspx?appid=188312&mode=create
# http://developer.myspace.com/Modules/APIs/Pages/OAuthTool.aspx
# http://developer.myspace.com/Community/forums/p/3626/15947.aspx
class MyspaceToken < OauthToken
  
  # http://wiki.developer.myspace.com/index.php?title=Portable_Contacts_REST_Resources
  key do |access_token|
    body = JSON.parse(access_token.get("/v2/people/@me/@self?format=json").body)
    id = body["entry"]["id"]
  end
  
  settings "http://api.myspace.com", 
    :request_token_path => "/request_token",
    :authorize_path     => "/authorize",
    :access_token_path  => "/access_token",
    :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/myspace_token.rb
anideo-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/myspace_token.rb
jspooner-authlogic-connect-0.0.20 lib/authlogic_connect/oauth/tokens/myspace_token.rb
jspooner-authlogic-connect-0.0.19 lib/authlogic_connect/oauth/tokens/myspace_token.rb
foreverman-authlogic-connect-0.0.4 lib/authlogic_connect/oauth/tokens/myspace_token.rb
foreverman-authlogic-connect-0.0.3 lib/authlogic_connect/oauth/tokens/myspace_token.rb
foreverman-authlogic-connect-0.0.2 lib/authlogic_connect/oauth/tokens/myspace_token.rb
foreverman-authlogic-connect-0.0.1 lib/authlogic_connect/oauth/tokens/myspace_token.rb
foreverman-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/myspace_token.rb
passport-0.1.1 lib/passport/oauth/tokens/myspace_token.rb
authlogic-connect-andrewacove-0.5.7 lib/authlogic_connect/oauth/tokens/myspace_token.rb
authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/myspace_token.rb
authlogic-connect-0.0.5.1 lib/authlogic_connect/oauth/tokens/myspace_token.rb
authlogic-connect-0.0.5 lib/authlogic_connect/oauth/tokens/myspace_token.rb
authlogic-connect-andrewacove-0.5.6 lib/authlogic_connect/oauth/tokens/myspace_token.rb
authlogic-connect-andrewacove-0.5.5 lib/authlogic_connect/oauth/tokens/myspace_token.rb
authlogic-connect-andrewacove-0.5.4 lib/authlogic_connect/oauth/tokens/myspace_token.rb
authlogic-connect-andrewacove-0.5.2 lib/authlogic_connect/oauth/tokens/myspace_token.rb
authlogic-connect-andrewacove-0.5.0 lib/authlogic_connect/oauth/tokens/myspace_token.rb
authlogic-connect-0.0.4.06 lib/authlogic_connect/oauth/tokens/myspace_token.rb