shangrila 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/shangrila/sana.rb +3 -3
- data/lib/shangrila/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac8d6fc1eba60fde4c90959235e605e45c1e80aa
|
4
|
+
data.tar.gz: f1676535aa6a9ca3fb5b38f22653e60227f24783
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db9c5a0c29cc0a653139053abc6619fb72e91a31214f063b092a900d71b9863f7c0c95540bfbd3440a634b42846b0280a9847ef962226fce6e697d09a2e56dd4
|
7
|
+
data.tar.gz: d34a7fa1fbd083a7c3250caf12744c27e720211f8e458c235f1a325fcb82d5444242827ba0f37778abda7486db07eaae3489f35b2a409fc26afb894bc4225f95
|
data/README.md
CHANGED
@@ -47,6 +47,6 @@ or Gemfile
|
|
47
47
|
|
48
48
|
#### Get Twitter Follower History
|
49
49
|
|
50
|
-
```Shangrila::Sana.new().follower_history(usagi_anime)```
|
50
|
+
```Shangrila::Sana.new().follower_history('usagi_anime')```
|
51
51
|
|
52
|
-
```Shangrila::Sana.new().follower_history(usagi_anime,
|
52
|
+
```Shangrila::Sana.new().follower_history('usagi_anime', 1446901208)```
|
data/lib/shangrila/sana.rb
CHANGED
@@ -14,7 +14,7 @@ module Shangrila
|
|
14
14
|
# @param [Array] accounts データ取得対象のアニメTwitter公式アカウント
|
15
15
|
# @return [Hash] アカウント群をキーとしたハッシュ
|
16
16
|
def follower_status(accounts)
|
17
|
-
response = HTTPClient.get(sprintf('/
|
17
|
+
response = HTTPClient.get(sprintf('%s/follower/status?accounts=%s', URL, accounts.join(',')))
|
18
18
|
JSON.load(response.body)
|
19
19
|
end
|
20
20
|
|
@@ -24,9 +24,9 @@ module Shangrila
|
|
24
24
|
def follower_history(account, end_date = nil)
|
25
25
|
response = nil
|
26
26
|
if end_date.nil?
|
27
|
-
response = HTTPClient.get(sprintf('/
|
27
|
+
response = HTTPClient.get(sprintf('%s/follower/history?account=%s', URL, account))
|
28
28
|
else
|
29
|
-
response = HTTPClient.get(sprintf('/
|
29
|
+
response = HTTPClient.get(sprintf('%s/follower/history?account=%s&end_date=%d', URL, account, end_date))
|
30
30
|
end
|
31
31
|
|
32
32
|
JSON.load(response.body)
|
data/lib/shangrila/version.rb
CHANGED