Sha256: 0d0738eb2683c045a03612d88026e2aa96a0db140530d95861b0faed5bf22f3b

Contents?: true

Size: 500 Bytes

Versions: 27

Compression:

Stored size: 500 Bytes

Contents

card_reader :consumer_key
card_reader :consumer_secret
card_reader :access_token
card_reader :access_secret

card_reader :message

# require "twitter"

def deliver context
  client.update message_card.format.contextual_content(context)
end

def client
  @client ||=
    ::Twitter::REST::Client.new do |config|
      config.consumer_key = consumer_key
      config.consumer_secret = consumer_secret
      config.access_token = access_token
      config.access_token_secret = access_secret
    end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
card-1.100.0 mod/twitter/set/type/twitter_template.rb
card-1.99.6 mod/twitter/set/type/twitter_template.rb
card-1.99.5 mod/twitter/set/type/twitter_template.rb
card-1.99.4 mod/twitter/set/type/twitter_template.rb
card-1.99.3 mod/twitter/set/type/twitter_template.rb
card-1.99.2 mod/twitter/set/type/twitter_template.rb
card-1.99.1 mod/twitter/set/type/twitter_template.rb
card-1.99.0 mod/twitter/set/type/twitter_template.rb
card-1.98.3 mod/twitter/set/type/twitter_template.rb
card-1.98.2 mod/twitter/set/type/twitter_template.rb
card-1.98.1 mod/twitter/set/type/twitter_template.rb
card-1.98.0 mod/twitter/set/type/twitter_template.rb
card-1.97.0.1 mod/twitter/set/type/twitter_template.rb
card-1.97.0 mod/twitter/set/type/twitter_template.rb
card-1.96.8 mod/twitter/set/type/twitter_template.rb
card-1.96.7 mod/twitter/set/type/twitter_template.rb
card-1.96.6 mod/twitter/set/type/twitter_template.rb
card-1.96.5 mod/twitter/set/type/twitter_template.rb
card-1.96.4 mod/twitter/set/type/twitter_template.rb
card-1.96.3 mod/twitter/set/type/twitter_template.rb