lib/weeter/plugins/notification/http.rb in weeter-0.11.0 vs lib/weeter/plugins/notification/http.rb in weeter-0.13.0
- old
+ new
@@ -18,9 +18,17 @@
id = tweet_item['delete']['status']['id'].to_s
user_id = tweet_item['delete']['status']['user_id'].to_s
Weeter.logger.info("Deleting tweet #{id} for user #{user_id}")
Weeter::Plugins::Net::OauthHttp.delete(@config, @config.delete_url, {:id => id, :twitter_user_id => user_id})
end
+
+ def notify_missed_tweets(tweet_item)
+ Weeter.logger.info("Weeter was limited by Twitter. #{tweet_item.missed_tweets_count} tweets missed.")
+ end
+
+ def notify_rate_limiting_initiated(tweet_item, limited_keys)
+ Weeter.logger.info("Initiated rate limiting with tweet: #{tweet_item.to_json}")
+ end
end
end
end
-end
\ No newline at end of file
+end