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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19441a8f33bc83788cb5c05bfe7cf857d4f400e6
4
- data.tar.gz: 02aa7cdcba537f3dcd756bf4d0655a8998520a49
3
+ metadata.gz: ac8d6fc1eba60fde4c90959235e605e45c1e80aa
4
+ data.tar.gz: f1676535aa6a9ca3fb5b38f22653e60227f24783
5
5
  SHA512:
6
- metadata.gz: 2940f90190ad02519868a178722fc4621f06f062de9d77cffc7d50b07dda62b49c461057c18e68ff347277085200ff09d5239ec5482adc4a4fabeb4ebeee2a2d
7
- data.tar.gz: 134059e4689d06e268c5f221ed1661353f9568ef5058d4c53c23e37e300b82fdf0c4b57663f8367cd10db919f7deb45a96198a0f239b93f70c522cfae6ea8829
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, 1446721206)```
52
+ ```Shangrila::Sana.new().follower_history('usagi_anime', 1446901208)```
@@ -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('/follower_status&accounts=%s', URL, accounts.join(',')))
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('/follower_history&account=%s', URL, account))
27
+ response = HTTPClient.get(sprintf('%s/follower/history?account=%s', URL, account))
28
28
  else
29
- response = HTTPClient.get(sprintf('/follower_history&account=%s&end_date=%d', URL, account, end_date))
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)
@@ -1,3 +1,3 @@
1
1
  module Shangrila
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shangrila
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - AKB428