trakt_api 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51fdf3bbcf2e850646ad5b135011562e3b1499ba
4
- data.tar.gz: 99db31861fcd5b3adad40ef9b1975333d11fcce9
3
+ metadata.gz: 2f02f863053f9b797654121ba6cd8d24e5e4c9b3
4
+ data.tar.gz: f85005692b1ee864416f4e5413cf2a457796e040
5
5
  SHA512:
6
- metadata.gz: f1870bd798113f962fcbbb7cc8dedf485f844502f0700e6c45d532506adb4678f754d2df8e274604e24493653600a8f8e3a58477c4f11ce66c43cb5b088e64b6
7
- data.tar.gz: 773b03d6166fc576186dbd4c15d6dd41b0668411817e8a29d5f9a9274cbfab776c655265e34cc138040e1adebf5a70e52edab4659386fbd2248b589e836e99f5
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.cancel_checkin
107
+ client.movie.cancel_check_in
107
108
  client.movie.cancel_watching
108
- client.movie.checkin({...})
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.cancel_checkin
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.watchlist_episode({...})
242
- client.user.watchlist_movies({...})
243
- client.user.watchlist_shows({...})
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
@@ -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
- optional_auth(options).get('activity/community').restful_params(options, type_fields).
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
- optional_auth(options).get('activity/episodes').restful_params(options, episodes_fields).
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').restful_params(options, type_fields).params(query_params(options, type_fields)).
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
- optional_auth(options).get('activity/movies').restful_params(options, title_fields).
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
- optional_auth(options).get('activity/seasons').restful_params(options, seasons_fields).
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
- optional_auth(options).get('activity/shows').restful_params(options, title_fields).
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
- optional_auth(options).get('activity/user').restful_params(options, user_fields).
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
- optional_auth(options).get('activity/user/episodes').restful_params(options, user_episodes_fields).
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
- optional_auth(options).get('activity/user/movies').restful_params(options, user_title_fields).
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
- optional_auth(options).get('activity/user/seasons').restful_params(options, user_seasons_fields).
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
- optional_auth(options).get('activity/user/shows').restful_params(options, user_title_fields).
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
@@ -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(options, fields)
46
+ def restful_params(fields = [])
52
47
  restful_params_string = ''
53
48
  fields.each do |field|
54
- restful_params_string += "/#{options[field]}" if options[field]
49
+ value = @params.delete(field)
50
+ restful_params_string += "/#{value}" if value
55
51
  end
56
- @uri = "#{@uri}/#{restful_params_string}"
52
+ @uri = "#{@uri}#{restful_params_string}"
57
53
 
58
54
  self
59
55
  end
@@ -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
- optional_auth(options).get('calendar/premieres').restful_params(options, fields).response
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
- optional_auth(options).get('calendar/shows').restful_params(options, fields).response
9
+ get('calendar/shows').params(options).restful_params(fields).response
10
10
  end
11
11
 
12
12
  private
@@ -1,6 +1,6 @@
1
1
  class TraktApi::Movie < TraktApi::Base
2
2
  # documentation: http://trakt.tv/api-docs/movie-cancelcheckin
3
- def cancel_checkin
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 checkin(options = {})
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
- optional_auth(options).get('movie/related').restful_params(options, [:title, :hidewatched]).response
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(options, [:title]).response
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
- optional_auth(options).get('movie/summary').restful_params(options, [:title]).response
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(options, [:title, :extended]).response
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
- optional_auth(options).get('movie/watchingnow').restful_params(options, [:title]).response
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
@@ -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
- optional_auth(options).get('movies/trending').response
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(options, [:timestamp]).response
9
+ get('movies/updated').params(options).restful_params([:timestamp]).response
10
10
  end
11
11
  end
@@ -1,6 +1,6 @@
1
1
  class TraktApi::Show < TraktApi::Base
2
2
  # documentation: http://trakt.tv/api-docs/show-cancelcheckin
3
- def cancel_checkin
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(options, [:title, :type]).response
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(options, [:title, :season, :episode, :type]).response
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(options, [:title, :season, :episode]).response
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
- optional_auth(options).get('show/episode/summary').restful_params(options, [:title, :season, :episode]).response
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
- optional_auth(options).get('show/episode/watchingnow').restful_params(options, [:title, :season, :episode]).
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
- optional_auth(options).get('show/related').restful_params(options, [:title, :extended, :hidewatched]).response
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
- optional_auth(options).get('show/season').restful_params(options, [:title, :season]).response
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(options, [:title]).response
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(options, [:title]).response
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
- optional_auth(options).get('show/summary').restful_params(options, [:title, :extended]).response
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
- optional_auth(options).get('show/watchingnow').restful_params(options, [:title]).response
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
@@ -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
- optional_auth(options).get('shows/trending').response
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(options, [:time]).response
9
+ get('shows/updated').params(options).restful_params([:time]).response
10
10
  end
11
11
  end
@@ -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
- optional_auth(options).get('user/calendar/shows').restful_params(options, [:username, :date, :days]).response
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
- optional_auth(options).get('user/lastactivity').restful_params(options, [:username]).response
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
- optional_auth(options).get('user/library/movies/all').restful_params(options, [:username]).params(options).response
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
- optional_auth(options).get('user/library/movies/collection').restful_params(options, [:username]).params(options).
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
- optional_auth(options).get('user/library/movies/watched').restful_params(options, [:username]).params(options).
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
- optional_auth(options).get('user/library/shows/all').restful_params(options, [:username]).params(options).
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
- optional_auth(options).get('user/library/shows/collection').restful_params(options, [:username]).params(options).
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
- optional_auth(options).get('user/library/shows/watched').restful_params(options, [:username]).params(options).
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
- optional_auth(options).get('user/list').restful_params(options, [:username, :slug]).params(options).response
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
- optional_auth(options).get('user/lists').restful_params(options, [:username]).params(options).response
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
- optional_auth(options).get('user/network/followers').restful_params(options, [:username]).params(options).response
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
- optional_auth(options).get('user/network/following').restful_params(options, [:username]).params(options).response
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
- optional_auth(options).get('user/network/friends').restful_params(options, [:username]).params(options).response
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
- optional_auth(options).get('user/profile').restful_params(options, [:username]).params(options).response
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
- optional_auth(options).get('user/progress/collected').
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
- optional_auth(options).get('user/progress/watched').restful_params(options, [:username, :title, :sort, :extended]).
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
- optional_auth(options).get('user/ratings/episodes').restful_params(options, [:username, :rating, :extended]).
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
- optional_auth(options).get('user/ratings/movies').restful_params(options, [:username, :rating, :extended]).response
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
- optional_auth(options).get('user/ratings/shows').restful_params(options, [:username, :rating, :extended]).response
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
- optional_auth(options).get('user/watching').restful_params(options, [:username]).response
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 watchlist_episode(options = {})
112
- optional_auth(options).get('user/watchlist/episodes').restful_params(options, [:username]).response
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 watchlist_movies(options = {})
117
- optional_auth(options).get('user/watchlist/movies').restful_params(options, [:username]).response
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 watchlist_shows(options = {})
122
- optional_auth(options).get('user/watchlist/shows').restful_params(options, [:username]).response
113
+ def watch_list_shows(options = {})
114
+ get('user/watchlist/shows').params(options).restful_params([:username]).response
123
115
  end
124
116
  end