shangrila 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/shangrila/sana.rb +10 -1
- data/lib/shangrila/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 047893ba7d33cad9dca6d30596e35b2e704b7c28
|
4
|
+
data.tar.gz: 6642e65c332310230cc8bb30d9aa848189e0ee9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45bb3cc3194b7bd91ad9379041c621532008f7f19995d0405443cf5ecaaf1daccd8c299e2d8518c27748abb1065a2a61ee3b083b91b315fbd0f7a88147e5fc59
|
7
|
+
data.tar.gz: c61ee16df71db2b434363eaa119e90f4ae004d5d114a7b443f98cf0da5816df31f2d420995274ed640ac44552d3040936c0b5f0b037cd2d8d3ca6a92cced28f8
|
data/README.md
CHANGED
@@ -60,4 +60,6 @@ irb(main):002:0> Shangrila::Sora.new().get_flat_data(2015, 4, ['id', 'title']).e
|
|
60
60
|
|
61
61
|
``Shangrila::Sana.new().follower_history('usagi_anime')``
|
62
62
|
|
63
|
-
``Shangrila::Sana.new().follower_history('usagi_anime', 1446901208)``
|
63
|
+
``Shangrila::Sana.new().follower_history('usagi_anime', 1446901208)``
|
64
|
+
|
65
|
+
``Shangrila::Sana.new().follower_history_daily('usagi_anime', 30)``
|
data/lib/shangrila/sana.rb
CHANGED
@@ -18,7 +18,7 @@ module Shangrila
|
|
18
18
|
JSON.load(response.body)
|
19
19
|
end
|
20
20
|
|
21
|
-
# @param [
|
21
|
+
# @param [String] account データ取得対象のアニメTwitter公式アカウント
|
22
22
|
# @param [int] end_date 検索対象の終了日時 where update_at < end_date)
|
23
23
|
# @return [Array] フォロワー数と更新日時のハッシュの配列
|
24
24
|
def follower_history(account, end_date = nil)
|
@@ -32,6 +32,15 @@ module Shangrila
|
|
32
32
|
JSON.load(response.body)
|
33
33
|
end
|
34
34
|
|
35
|
+
# /anime/v1/twitter/follower/history/daily
|
36
|
+
# @param [String] account データ取得対象のアニメTwitter公式アカウント
|
37
|
+
# @param [int] days 取得日数
|
38
|
+
# @return [Array] フォロワー数と更新日時のハッシュの配列
|
39
|
+
def follower_history_daily(account, days = nil)
|
40
|
+
response = HTTPClient.get(sprintf('%s/follower/history/daily?account=%s&days=%s', URL, account, days))
|
41
|
+
|
42
|
+
JSON.load(response.body)
|
43
|
+
end
|
35
44
|
end
|
36
45
|
|
37
46
|
end
|
data/lib/shangrila/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shangrila
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AKB428
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|