Sha256: 23d22be87c83016b168bb7cec143af527f028823651245a9481251c4a475d86e

Contents?: true

Size: 215 Bytes

Versions: 1

Compression:

Stored size: 215 Bytes

Contents

# https://www.yammer.com/api_doc.html
class YammerToken < OauthToken

  settings "https://www.yammer.com"
  
  key do |access_token|
    JSON.parse(access_token.get("/api/v1/users/current.json"))["id"]
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

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