trakt_api 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/lib/trakt_api/activity.rb +11 -26
- data/lib/trakt_api/base.rb +5 -9
- data/lib/trakt_api/calendar.rb +2 -2
- data/lib/trakt_api/movie.rb +7 -7
- data/lib/trakt_api/movies.rb +2 -2
- data/lib/trakt_api/show.rb +12 -13
- data/lib/trakt_api/shows.rb +2 -2
- data/lib/trakt_api/user.rb +26 -34
- data/lib/trakt_api/version.rb +1 -1
- data/spec/trakt_api/activity_spec.rb +45 -99
- data/spec/trakt_api/base_spec.rb +4 -11
- data/spec/trakt_api/calendar_spec.rb +11 -11
- data/spec/trakt_api/movie_spec.rb +34 -22
- data/spec/trakt_api/movies_spec.rb +11 -5
- data/spec/trakt_api/show_spec.rb +63 -33
- data/spec/trakt_api/shows_spec.rb +11 -5
- data/spec/trakt_api/user_spec.rb +120 -192
- 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: 2f02f863053f9b797654121ba6cd8d24e5e4c9b3
|
4
|
+
data.tar.gz: f85005692b1ee864416f4e5413cf2a457796e040
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5abbbedea5d3b6472eb31401fb6278ecf6e7182753abcf2294016d1e517ea19f412990a0c57358254af46c4ed247af70bf367f84b7d527e19defc5d225adccf8
|
7
|
+
data.tar.gz: a21c16ce803175971c0d4afa4a6b1603f9d889a410d60d5d2efba73d34d0f452b483b33eb6e3b66395cba3cb8bbcad092a8d5819c82b7a10e4245a69feb5fcfe
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
[![Dependency Status](https://gemnasium.com/wafcio/trakt_api.png)](https://gemnasium.com/wafcio/trakt_api)
|
3
3
|
[![Code Climate](https://codeclimate.com/github/wafcio/trakt_api.png)](https://codeclimate.com/github/wafcio/trakt_api)
|
4
4
|
[![Coverage Status](https://coveralls.io/repos/wafcio/trakt_api/badge.png)](https://coveralls.io/r/wafcio/trakt_api)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/trakt_api.png)](http://badge.fury.io/rb/trakt_api)
|
5
6
|
|
6
7
|
# TraktApi
|
7
8
|
|
@@ -103,9 +104,9 @@ client.lists.update({...})
|
|
103
104
|
Movie API
|
104
105
|
|
105
106
|
```ruby
|
106
|
-
client.movie.
|
107
|
+
client.movie.cancel_check_in
|
107
108
|
client.movie.cancel_watching
|
108
|
-
client.movie.
|
109
|
+
client.movie.check_in({...})
|
109
110
|
client.movie.comments({...})
|
110
111
|
client.movie.scrobble({...})
|
111
112
|
client.movie.library({...})
|
@@ -176,7 +177,7 @@ client.server.time
|
|
176
177
|
Show API
|
177
178
|
|
178
179
|
```ruby
|
179
|
-
client.show.
|
180
|
+
client.show.cancel_check_in
|
180
181
|
client.show.cancel_watching
|
181
182
|
client.show.check_in({...})
|
182
183
|
client.show.comments({...})
|
@@ -238,9 +239,9 @@ client.user.ratings_episodes({...})
|
|
238
239
|
client.user.ratings_movies({...})
|
239
240
|
client.user.ratings_shows({...})
|
240
241
|
client.user.watching({...})
|
241
|
-
client.user.
|
242
|
-
client.user.
|
243
|
-
client.user.
|
242
|
+
client.user.watch_list_episode({...})
|
243
|
+
client.user.watch_list_movies({...})
|
244
|
+
client.user.watch_list_shows({...})
|
244
245
|
```
|
245
246
|
|
246
247
|
## Contributing
|
data/lib/trakt_api/activity.rb
CHANGED
@@ -1,72 +1,57 @@
|
|
1
1
|
class TraktApi::Activity < TraktApi::Base
|
2
2
|
# documentation: http://trakt.tv/api-docs/activity-community
|
3
3
|
def community(options = {})
|
4
|
-
|
5
|
-
params(query_params(options, type_fields)).response
|
4
|
+
get('activity/community').params(options).restful_params(type_fields).response
|
6
5
|
end
|
7
6
|
|
8
7
|
# documentation: http://trakt.tv/api-docs/activity-episodes
|
9
8
|
def episodes(options = {})
|
10
|
-
|
11
|
-
params(query_params(options, episodes_fields)).response
|
9
|
+
get('activity/episodes').params(options).restful_params(episodes_fields).response
|
12
10
|
end
|
13
11
|
|
14
12
|
# documentation: http://trakt.tv/api-docs/activity-friends
|
15
13
|
def friends(options = {})
|
16
|
-
auth.post('activity/friends').
|
17
|
-
response
|
14
|
+
auth.post('activity/friends').params(options).restful_params(type_fields).response
|
18
15
|
end
|
19
16
|
|
20
17
|
# documentation: http://trakt.tv/api-docs/activity-movies
|
21
18
|
def movies(options = {})
|
22
|
-
|
23
|
-
params(query_params(options, title_fields)).response
|
19
|
+
get('activity/movies').params(options).restful_params(title_fields).response
|
24
20
|
end
|
25
21
|
|
26
22
|
# documentation: http://trakt.tv/api-docs/activity-seasons
|
27
23
|
def seasons(options = {})
|
28
|
-
|
29
|
-
params(query_params(options, seasons_fields)).response
|
24
|
+
get('activity/seasons').params(options).restful_params(seasons_fields).response
|
30
25
|
end
|
31
26
|
|
32
27
|
# documentation: http://trakt.tv/api-docs/activity-shows
|
33
28
|
def shows(options = {})
|
34
|
-
|
35
|
-
params(query_params(options, title_fields)).response
|
29
|
+
get('activity/shows').params(options).restful_params(title_fields).response
|
36
30
|
end
|
37
31
|
|
38
32
|
# documentation: http://trakt.tv/api-docs/activity-user
|
39
33
|
def user(options = {})
|
40
|
-
|
41
|
-
params(query_params(options, user_fields)).response
|
34
|
+
get('activity/user').params(options).restful_params(user_fields).response
|
42
35
|
end
|
43
36
|
|
44
37
|
# documentation: http://trakt.tv/api-docs/activity-user-episodes
|
45
38
|
def user_episodes(options = {})
|
46
|
-
|
47
|
-
params(query_params(options, user_episodes_fields)).response
|
39
|
+
get('activity/user/episodes').params(options).restful_params(user_episodes_fields).response
|
48
40
|
end
|
49
41
|
|
50
42
|
# documentation: http://trakt.tv/api-docs/activity-user-movies
|
51
43
|
def user_movies(options = {})
|
52
|
-
|
53
|
-
params(query_params(options, user_title_fields)).response
|
44
|
+
get('activity/user/movies').params(options).restful_params(user_title_fields).response
|
54
45
|
end
|
55
46
|
|
56
47
|
# documentation: http://trakt.tv/api-docs/activity-user-seasons
|
57
48
|
def user_seasons(options = {})
|
58
|
-
|
59
|
-
params(query_params(options, user_seasons_fields)).response
|
49
|
+
get('activity/user/seasons').params(options).restful_params(user_seasons_fields).response
|
60
50
|
end
|
61
51
|
|
62
52
|
# documentation: http://trakt.tv/api-docs/activity-user-shows
|
63
53
|
def user_shows(options = {})
|
64
|
-
|
65
|
-
params(query_params(options, user_title_fields)).response
|
66
|
-
end
|
67
|
-
|
68
|
-
def query_params(options, fields)
|
69
|
-
options.reject{ |option| fields.include?(option) }
|
54
|
+
get('activity/user/shows').params(options).restful_params(user_title_fields).response
|
70
55
|
end
|
71
56
|
|
72
57
|
private
|
data/lib/trakt_api/base.rb
CHANGED
@@ -18,12 +18,6 @@ class TraktApi::Base
|
|
18
18
|
self
|
19
19
|
end
|
20
20
|
|
21
|
-
def optional_auth(options)
|
22
|
-
auth if options[:auth]
|
23
|
-
|
24
|
-
self
|
25
|
-
end
|
26
|
-
|
27
21
|
def store_uri(uri)
|
28
22
|
@uri = "#{uri}.json/#{api_key}"
|
29
23
|
end
|
@@ -44,16 +38,18 @@ class TraktApi::Base
|
|
44
38
|
|
45
39
|
def params(options)
|
46
40
|
@params = options
|
41
|
+
auth if options.delete(:auth)
|
47
42
|
|
48
43
|
self
|
49
44
|
end
|
50
45
|
|
51
|
-
def restful_params(
|
46
|
+
def restful_params(fields = [])
|
52
47
|
restful_params_string = ''
|
53
48
|
fields.each do |field|
|
54
|
-
|
49
|
+
value = @params.delete(field)
|
50
|
+
restful_params_string += "/#{value}" if value
|
55
51
|
end
|
56
|
-
@uri = "#{@uri}
|
52
|
+
@uri = "#{@uri}#{restful_params_string}"
|
57
53
|
|
58
54
|
self
|
59
55
|
end
|
data/lib/trakt_api/calendar.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
class TraktApi::Calendar < TraktApi::Base
|
2
2
|
# documentation: http://trakt.tv/api-docs/calendar-premieres
|
3
3
|
def premieres(options = {})
|
4
|
-
|
4
|
+
get('calendar/premieres').params(options).restful_params(fields).response
|
5
5
|
end
|
6
6
|
|
7
7
|
# documentation: http://trakt.tv/api-docs/calendar-shows
|
8
8
|
def shows(options = {})
|
9
|
-
|
9
|
+
get('calendar/shows').params(options).restful_params(fields).response
|
10
10
|
end
|
11
11
|
|
12
12
|
private
|
data/lib/trakt_api/movie.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class TraktApi::Movie < TraktApi::Base
|
2
2
|
# documentation: http://trakt.tv/api-docs/movie-cancelcheckin
|
3
|
-
def
|
3
|
+
def cancel_check_in
|
4
4
|
auth.post('movie/cancelcheckin').response
|
5
5
|
end
|
6
6
|
|
@@ -10,7 +10,7 @@ class TraktApi::Movie < TraktApi::Base
|
|
10
10
|
end
|
11
11
|
|
12
12
|
# documentation: http://trakt.tv/api-docs/movie-checkin
|
13
|
-
def
|
13
|
+
def check_in(options = {})
|
14
14
|
auth.post('movie/checkin').params(options).response
|
15
15
|
end
|
16
16
|
|
@@ -36,22 +36,22 @@ class TraktApi::Movie < TraktApi::Base
|
|
36
36
|
|
37
37
|
# documentation: http://trakt.tv/api-docs/movie-related
|
38
38
|
def related(options = {})
|
39
|
-
|
39
|
+
get('movie/related').params(options).restful_params([:title, :hidewatched]).response
|
40
40
|
end
|
41
41
|
|
42
42
|
# documentation: http://trakt.tv/api-docs/movie-stats
|
43
43
|
def stats(options = {})
|
44
|
-
get('movie/stats').restful_params(
|
44
|
+
get('movie/stats').params(options).restful_params([:title]).response
|
45
45
|
end
|
46
46
|
|
47
47
|
# documentation: http://trakt.tv/api-docs/movie-summary
|
48
48
|
def summary(options = {})
|
49
|
-
|
49
|
+
get('movie/summary').params(options).restful_params([:title]).response
|
50
50
|
end
|
51
51
|
|
52
52
|
# documentation: http://trakt.tv/api-docs/movie-summaries
|
53
53
|
def summaries(options = {})
|
54
|
-
get('movie/summaries').restful_params(
|
54
|
+
get('movie/summaries').params(options).restful_params([:title, :extended]).response
|
55
55
|
end
|
56
56
|
|
57
57
|
# documentation: http://trakt.tv/api-docs/movie-unlibrary
|
@@ -76,7 +76,7 @@ class TraktApi::Movie < TraktApi::Base
|
|
76
76
|
|
77
77
|
# documentation: http://trakt.tv/api-docs/movie-watchingnow
|
78
78
|
def watching_now(options = {})
|
79
|
-
|
79
|
+
get('movie/watchingnow').params(options).restful_params([:title]).response
|
80
80
|
end
|
81
81
|
|
82
82
|
# documentation: http://trakt.tv/api-docs/movie-watchlist
|
data/lib/trakt_api/movies.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
class TraktApi::Movies < TraktApi::Base
|
2
2
|
# documentation: http://trakt.tv/api-docs/movies-trending
|
3
3
|
def trending(options = {})
|
4
|
-
|
4
|
+
get('movies/trending').params(options).response
|
5
5
|
end
|
6
6
|
|
7
7
|
# documentation: http://trakt.tv/api-docs/movies-updated
|
8
8
|
def updated(options = {})
|
9
|
-
get('movies/updated').restful_params(
|
9
|
+
get('movies/updated').params(options).restful_params([:timestamp]).response
|
10
10
|
end
|
11
11
|
end
|
data/lib/trakt_api/show.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class TraktApi::Show < TraktApi::Base
|
2
2
|
# documentation: http://trakt.tv/api-docs/show-cancelcheckin
|
3
|
-
def
|
3
|
+
def cancel_check_in
|
4
4
|
auth.post('show/cancelcheckin').response
|
5
5
|
end
|
6
6
|
|
@@ -16,12 +16,12 @@ class TraktApi::Show < TraktApi::Base
|
|
16
16
|
|
17
17
|
# documentation: http://trakt.tv/api-docs/show-comments
|
18
18
|
def comments(options = {})
|
19
|
-
get('show/comments').restful_params(
|
19
|
+
get('show/comments').params(options).restful_params([:title, :type]).response
|
20
20
|
end
|
21
21
|
|
22
22
|
# documentation: http://trakt.tv/api-docs/show-episode-comments
|
23
23
|
def episode_comments(options = {})
|
24
|
-
get('show/episode/comments').restful_params(
|
24
|
+
get('show/episode/comments').params(options).restful_params([:title, :season, :episode, :type]).response
|
25
25
|
end
|
26
26
|
|
27
27
|
# documentation: http://trakt.tv/api-docs/show-episode-library
|
@@ -36,12 +36,12 @@ class TraktApi::Show < TraktApi::Base
|
|
36
36
|
|
37
37
|
# documentation: http://trakt.tv/api-docs/show-episode-stats
|
38
38
|
def episode_stats(options = {})
|
39
|
-
get('show/episode/stats').restful_params(
|
39
|
+
get('show/episode/stats').params(options).restful_params([:title, :season, :episode]).response
|
40
40
|
end
|
41
41
|
|
42
42
|
# documentation: http://trakt.tv/api-docs/show-episode-summary
|
43
43
|
def episode_summary(options = {})
|
44
|
-
|
44
|
+
get('show/episode/summary').params(options).restful_params([:title, :season, :episode]).response
|
45
45
|
end
|
46
46
|
|
47
47
|
# documentation: http://trakt.tv/api-docs/show-episode-unlibrary
|
@@ -61,8 +61,7 @@ class TraktApi::Show < TraktApi::Base
|
|
61
61
|
|
62
62
|
# documentation: http://trakt.tv/api-docs/show-episode-watchingnow
|
63
63
|
def episode_watching_now(options = {})
|
64
|
-
|
65
|
-
response
|
64
|
+
get('show/episode/watchingnow').params(options).restful_params([:title, :season, :episode]).response
|
66
65
|
end
|
67
66
|
|
68
67
|
# documentation: http://trakt.tv/api-docs/show-episode-watchlist
|
@@ -77,7 +76,7 @@ class TraktApi::Show < TraktApi::Base
|
|
77
76
|
|
78
77
|
# documentation: http://trakt.tv/api-docs/show-related
|
79
78
|
def related(options = {})
|
80
|
-
|
79
|
+
get('show/related').params(options).restful_params([:title, :extended, :hidewatched]).response
|
81
80
|
end
|
82
81
|
|
83
82
|
# documentation: http://trakt.tv/api-docs/show-scrobble
|
@@ -87,7 +86,7 @@ class TraktApi::Show < TraktApi::Base
|
|
87
86
|
|
88
87
|
# documentation: http://trakt.tv/api-docs/show-season
|
89
88
|
def season(options = {})
|
90
|
-
|
89
|
+
get('show/season').params(options).restful_params([:title, :season]).response
|
91
90
|
end
|
92
91
|
|
93
92
|
# documentation: http://trakt.tv/api-docs/show-season-library
|
@@ -102,7 +101,7 @@ class TraktApi::Show < TraktApi::Base
|
|
102
101
|
|
103
102
|
# documentation: http://trakt.tv/api-docs/show-seasons
|
104
103
|
def seasons(options = {})
|
105
|
-
get('show/seasons').restful_params(
|
104
|
+
get('show/seasons').params(options).restful_params([:title]).response
|
106
105
|
end
|
107
106
|
|
108
107
|
# documentation: http://trakt.tv/api-docs/show-seen
|
@@ -112,12 +111,12 @@ class TraktApi::Show < TraktApi::Base
|
|
112
111
|
|
113
112
|
# documentation: http://trakt.tv/api-docs/show-stats
|
114
113
|
def stats(options = {})
|
115
|
-
get('show/stats').restful_params(
|
114
|
+
get('show/stats').params(options).restful_params([:title]).response
|
116
115
|
end
|
117
116
|
|
118
117
|
# documentation: http://trakt.tv/api-docs/show-summary
|
119
118
|
def summary(options = {})
|
120
|
-
|
119
|
+
get('show/summary').params(options).restful_params([:title, :extended]).response
|
121
120
|
end
|
122
121
|
|
123
122
|
# documentation: http://trakt.tv/api-docs/show-summaries
|
@@ -142,7 +141,7 @@ class TraktApi::Show < TraktApi::Base
|
|
142
141
|
|
143
142
|
# documentation: http://trakt.tv/api-docs/show-watchingnow
|
144
143
|
def watching_now(options = {})
|
145
|
-
|
144
|
+
get('show/watchingnow').params(options).restful_params([:title]).response
|
146
145
|
end
|
147
146
|
|
148
147
|
# documentation: http://trakt.tv/api-docs/show-watchlist
|
data/lib/trakt_api/shows.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
class TraktApi::Shows < TraktApi::Base
|
2
2
|
# documentation: http://trakt.tv/api-docs/shows-trending
|
3
3
|
def trending(options = {})
|
4
|
-
|
4
|
+
get('shows/trending').params(options).response
|
5
5
|
end
|
6
6
|
|
7
7
|
# documentation: http://trakt.tv/api-docs/shows-updated
|
8
8
|
def updated(options = {})
|
9
|
-
get('shows/updated').restful_params(
|
9
|
+
get('shows/updated').params(options).restful_params([:time]).response
|
10
10
|
end
|
11
11
|
end
|
data/lib/trakt_api/user.rb
CHANGED
@@ -1,124 +1,116 @@
|
|
1
1
|
class TraktApi::User < TraktApi::Base
|
2
2
|
# documentation: http://trakt.tv/api-docs/user-calendar-shows
|
3
3
|
def calendar_shows(options = {})
|
4
|
-
|
4
|
+
get('user/calendar/shows').params(options).restful_params([:username, :date, :days]).response
|
5
5
|
end
|
6
6
|
|
7
7
|
# documentation: http://trakt.tv/api-docs/user-lastactivity
|
8
8
|
def last_activity(options = {})
|
9
|
-
|
9
|
+
get('user/lastactivity').params(options).restful_params([:username]).response
|
10
10
|
end
|
11
11
|
|
12
12
|
# documentation: http://trakt.tv/api-docs/user-library-movies-all
|
13
13
|
def library_movies_all(options = {})
|
14
|
-
|
14
|
+
get('user/library/movies/all').params(options).restful_params([:username]).response
|
15
15
|
end
|
16
16
|
|
17
17
|
# documentation: http://trakt.tv/api-docs/user-library-movies-collection
|
18
18
|
def library_movies_collection(options = {})
|
19
|
-
|
20
|
-
response
|
19
|
+
get('user/library/movies/collection').params(options).restful_params([:username]).response
|
21
20
|
end
|
22
21
|
|
23
22
|
# documentation: http://trakt.tv/api-docs/user-library-movies-watched
|
24
23
|
def library_movies_watched(options = {})
|
25
|
-
|
26
|
-
response
|
24
|
+
get('user/library/movies/watched').params(options).restful_params([:username]).response
|
27
25
|
end
|
28
26
|
|
29
27
|
# documentation: http://trakt.tv/api-docs/user-library-shows-all
|
30
28
|
def library_shows_all(options = {})
|
31
|
-
|
32
|
-
response
|
29
|
+
get('user/library/shows/all').params(options).restful_params([:username]).response
|
33
30
|
end
|
34
31
|
|
35
32
|
# documentation: http://trakt.tv/api-docs/user-library-shows-collection
|
36
33
|
def library_shows_collection(options = {})
|
37
|
-
|
38
|
-
response
|
34
|
+
get('user/library/shows/collection').params(options).restful_params([:username]).response
|
39
35
|
end
|
40
36
|
|
41
37
|
# documentation: http://trakt.tv/api-docs/user-library-shows-watched
|
42
38
|
def library_shows_watched(options = {})
|
43
|
-
|
44
|
-
response
|
39
|
+
get('user/library/shows/watched').params(options).restful_params([:username]).response
|
45
40
|
end
|
46
41
|
|
47
42
|
# documentation: http://trakt.tv/api-docs/user-list
|
48
43
|
def list(options = {})
|
49
|
-
|
44
|
+
get('user/list').params(options).restful_params([:username, :slug]).response
|
50
45
|
end
|
51
46
|
|
52
47
|
# documentation: http://trakt.tv/api-docs/user-lists
|
53
48
|
def lists(options = {})
|
54
|
-
|
49
|
+
get('user/lists').params(options).restful_params([:username]).response
|
55
50
|
end
|
56
51
|
|
57
52
|
# documentation: http://trakt.tv/api-docs/user-network-followers
|
58
53
|
def network_followers(options = {})
|
59
|
-
|
54
|
+
get('user/network/followers').params(options).restful_params([:username]).response
|
60
55
|
end
|
61
56
|
|
62
57
|
# documentation: http://trakt.tv/api-docs/user-network-following
|
63
58
|
def network_following(options = {})
|
64
|
-
|
59
|
+
get('user/network/following').params(options).restful_params([:username]).response
|
65
60
|
end
|
66
61
|
|
67
62
|
# documentation: http://trakt.tv/api-docs/user-network-friends
|
68
63
|
def network_friends(options = {})
|
69
|
-
|
64
|
+
get('user/network/friends').params(options).restful_params([:username]).response
|
70
65
|
end
|
71
66
|
|
72
67
|
# documentation: http://trakt.tv/api-docs/user-profile
|
73
68
|
def profile(options = {})
|
74
|
-
|
69
|
+
get('user/profile').params(options).restful_params([:username]).response
|
75
70
|
end
|
76
71
|
|
77
72
|
# documentation: http://trakt.tv/api-docs/user-progress-collected
|
78
73
|
def progress_collected(options = {})
|
79
|
-
|
80
|
-
restful_params(options, [:username, :title, :sort, :extended]).response
|
74
|
+
get('user/progress/collected').params(options).restful_params([:username, :title, :sort, :extended]).response
|
81
75
|
end
|
82
76
|
|
83
77
|
# documentation: http://trakt.tv/api-docs/user-progress-watched
|
84
78
|
def progress_watched(options = {})
|
85
|
-
|
86
|
-
response
|
79
|
+
get('user/progress/watched').params(options).restful_params([:username, :title, :sort, :extended]).response
|
87
80
|
end
|
88
81
|
|
89
82
|
# documentation: http://trakt.tv/api-docs/user-ratings-episodes
|
90
83
|
def ratings_episodes(options = {})
|
91
|
-
|
92
|
-
response
|
84
|
+
get('user/ratings/episodes').params(options).restful_params([:username, :rating, :extended]).response
|
93
85
|
end
|
94
86
|
|
95
87
|
# documentation: http://trakt.tv/api-docs/user-ratings-movies
|
96
88
|
def ratings_movies(options = {})
|
97
|
-
|
89
|
+
get('user/ratings/movies').params(options).restful_params([:username, :rating, :extended]).response
|
98
90
|
end
|
99
91
|
|
100
92
|
# documentation: http://trakt.tv/api-docs/user-ratings-shows
|
101
93
|
def ratings_shows(options = {})
|
102
|
-
|
94
|
+
get('user/ratings/shows').params(options).restful_params([:username, :rating, :extended]).response
|
103
95
|
end
|
104
96
|
|
105
97
|
# documentation: http://trakt.tv/api-docs/user-watching
|
106
98
|
def watching(options = {})
|
107
|
-
|
99
|
+
get('user/watching').params(options).restful_params([:username]).response
|
108
100
|
end
|
109
101
|
|
110
102
|
# documentation: http://trakt.tv/api-docs/user-watchlist-episodes
|
111
|
-
def
|
112
|
-
|
103
|
+
def watch_list_episode(options = {})
|
104
|
+
get('user/watchlist/episodes').params(options).restful_params([:username]).response
|
113
105
|
end
|
114
106
|
|
115
107
|
# documentation: http://trakt.tv/api-docs/user-watchlist-movies
|
116
|
-
def
|
117
|
-
|
108
|
+
def watch_list_movies(options = {})
|
109
|
+
get('user/watchlist/movies').params(options).restful_params([:username]).response
|
118
110
|
end
|
119
111
|
|
120
112
|
# documentation: http://trakt.tv/api-docs/user-watchlist-shows
|
121
|
-
def
|
122
|
-
|
113
|
+
def watch_list_shows(options = {})
|
114
|
+
get('user/watchlist/shows').params(options).restful_params([:username]).response
|
123
115
|
end
|
124
116
|
end
|