Sha256: 1249ca28bf71b88f55e84d14fe47274f828f60ae52d0bb7f0c5e16a4cbd18768
Contents?: true
Size: 521 Bytes
Versions: 1
Compression:
Stored size: 521 Bytes
Contents
require 'twitter' class TwitterMiddleware < GoodData::Bricks::Middleware def call(params) client = Twitter::REST::Client.new do |config| config.consumer_key = params[:twitter_consumer_key] config.consumer_secret = params[:twitter_consumer_secret] config.access_token = params[:twitter_access_token] config.access_token_secret = params[:twitter_access_token_secret] end returning(@app.call(params)) do |result| client.update(result) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.0.pre3 | lib/gooddata/bricks/middleware/twitter_middleware.rb |