Sha256: 7307155c484047deebd0f85f44c20dbdb0e63d0da7a862d6dd8dcdb69ff8e8cb

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

# http://developer.cliqset.com/api#TOC-OAuth-2.0-Overview
# http://developer.cliqset.com/api/user
class CliqsetToken < OauthToken
  
  settings "https://secure.cliqset.com",
    :authorize_path     => "/oauth/v2/authorize",
    :access_token_path  => "/oauth/v2/access_token"
    
  key do |access_token|
    JSON.parse(access_token.get("https://api.cliqset.com/v4/user/me"))["User"]["ID"]
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
passport-0.1.1 lib/passport/oauth/tokens/cliqset_token.rb