twitch 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twitch/client.rb +8 -4
- data/lib/twitch/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: e01cfa52014420d7bca4357d604ffeeea8fe3158
|
4
|
+
data.tar.gz: dc7a066938e2164ab2208024b5c14b622f626fa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c875b08cd678e419352b89edf524c00f31f434ca503b19c1d39af63fcbf8bc2b29919024df3fd55e74a4ab909cb6fb3fe443f7015bc3ef0473de1a76b19cb63b
|
7
|
+
data.tar.gz: 9231a9be8cc99411e0050e7e74c2795507b1f2b718d2ed39ffba27a00c2b38702382013067a608b89a9e0c8e2f0e87386308c6ed6e4feac2fa9942dd003e6055
|
data/lib/twitch/client.rb
CHANGED
@@ -212,8 +212,9 @@ module Twitch
|
|
212
212
|
def followed_streams(options = {})
|
213
213
|
return false unless @access_token
|
214
214
|
|
215
|
+
options[:oauth_token] = @access_token
|
215
216
|
query = build_query_string(options)
|
216
|
-
path = "/streams/followed
|
217
|
+
path = "/streams/followed"
|
217
218
|
url = @base_url + path + query
|
218
219
|
|
219
220
|
get(url)
|
@@ -274,8 +275,9 @@ module Twitch
|
|
274
275
|
end
|
275
276
|
|
276
277
|
def subscribed?(username, channel, options = {})
|
278
|
+
options[:oauth_token] = @access_token
|
277
279
|
query = build_query_string(options)
|
278
|
-
path = "/users/#{username}/subscriptions/#{channel}
|
280
|
+
path = "/users/#{username}/subscriptions/#{channel}"
|
279
281
|
url = @base_url + path + query
|
280
282
|
|
281
283
|
get(url)
|
@@ -284,8 +286,9 @@ module Twitch
|
|
284
286
|
def followed_videos(options ={})
|
285
287
|
return false unless @access_token
|
286
288
|
|
289
|
+
options[:oauth_token] = @access_token
|
287
290
|
query = build_query_string(options)
|
288
|
-
path = "/videos/followed
|
291
|
+
path = "/videos/followed"
|
289
292
|
url = @base_url + path + query
|
290
293
|
|
291
294
|
get(url)
|
@@ -303,8 +306,9 @@ module Twitch
|
|
303
306
|
# Blocks
|
304
307
|
|
305
308
|
def blocks(username, options = {})
|
309
|
+
options[:oauth_token] = @access_token
|
306
310
|
query = build_query_string(options)
|
307
|
-
path = "/users/#{username}/blocks
|
311
|
+
path = "/users/#{username}/blocks"
|
308
312
|
url = @base_url + path + query
|
309
313
|
|
310
314
|
get(url)
|
data/lib/twitch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Lakin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|