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.96.2 mod/twitter/set/type/twitter_template.rb
card-1.96.1 mod/twitter/set/type/twitter_template.rb
card-1.96.0 mod/twitter/set/type/twitter_template.rb
card-1.95.3 mod/twitter/set/type/twitter_template.rb
card-1.95.2 mod/twitter/set/type/twitter_template.rb
card-1.95.1 mod/twitter/set/type/twitter_template.rb
card-1.95.0 mod/twitter/set/type/twitter_template.rb