twitter: remove unused TwitterApi class (#3206).
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
class TwitterApi
|
|
||||||
def client
|
|
||||||
api_token = Cache.get("twitter-api-token")
|
|
||||||
hoge = Twitter::Rest::Client.new do |config|
|
|
||||||
config.consumer_key = Danbooru.config.twiter_api_key
|
|
||||||
config.consumer_secret = Danbooru.config.twitter_api_secret
|
|
||||||
config.bearer_token = api_token if api_token
|
|
||||||
end
|
|
||||||
Cache.put("twitter-api-token", hoge.bearer_token)
|
|
||||||
hoge
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Reference in New Issue
Block a user