60 |
61 |
We're sorry, but something went wrong.
62 |
63 |
If you are the application owner check the logs for more information.
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/lib/twitter_api.rb:
--------------------------------------------------------------------------------
1 | class TwitterApi
2 | def self.rornews_tweets
3 | client.user_timeline('rubyonrailsnews', count: 10, exclude_replies: true, include_rts: false)
4 | end
5 |
6 | def self.railscontent_tweets
7 | client.user_timeline('rubyonrrails', count: 10, exclude_replies: true, include_rts: false)
8 | end
9 |
10 | def self.rorjobs_tweets
11 | client.user_timeline('rorjobs', count: 20, exclude_replies: true, include_rts: false)
12 | end
13 |
14 | def self.rubyinside_tweets
15 | client.user_timeline('rubyinside', count: 20, exclude_replies: true, include_rts: false)
16 | end
17 |
18 | def self.thepsf_tweets
19 | client.user_timeline('thepsf', count: 20, exclude_replies: true, include_rts: false)
20 | end
21 |
22 | def self.talkpython_tweets
23 | client.user_timeline('talkpython', count: 20, exclude_replies: true, include_rts: false)
24 | end
25 |
26 | def self.pyjobo_tweets
27 | client.user_timeline('pyjobo', count: 20, exclude_replies: true, include_rts: false)
28 | end
29 |
30 | def self.ml_toparticles_tweets
31 | client.user_timeline('ml_toparticles', count: 20, exclude_replies: true, include_rts: false)
32 | end
33 |
34 | def self.slashml_tweets
35 | client.user_timeline('slashml', count: 20, exclude_replies: true, include_rts: false)
36 | end
37 |
38 | def self.careersai_tweets
39 | client.user_timeline('careersai', count: 20, exclude_replies: true, include_rts: false)
40 | end
41 |
42 | def self.client
43 | @client ||= Twitter::REST::Client.new do |config|
44 | config.consumer_key = ENV['TWITTER_CONSUMER_KEY']
45 | config.consumer_secret = ENV['TWITTER_CONSUMER_SECRET']
46 | end
47 | end
48 | end
49 |
50 |
--------------------------------------------------------------------------------
/public/422.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |