SimplonBrandon

Demo

API Twitter

Ruby

Les variables

puts(ma_variable)

Twitter.when(['#SimplonBrandon']) do |tweet|

 

end

Twitter.when(['#SimplonBrandon']) do |tweet|

   puts(tweet)

end

tweeter("J'ai 23 ans")

Twitter.when(['#SimplonBrandon']) do |tweet|

   puts(tweet)

   tweeter("J'ai 23 ans")

end

Les conditions

tweeter("J'ai 23 ans") if tweet =~ /age|year/

Twitter.when(['#SimplonBrandon']) do |tweet|

   puts(tweet)

   tweeter("J'ai 23 ans") if tweet =~ /age/

end

Bravo !

SimplonBrandon

By aghaniyassin

SimplonBrandon

  • 1,031