twitter 5.14.0 → 5.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -7
  2. data/CHANGELOG.md +8 -0
  3. data/LICENSE.md +1 -1
  4. data/README.md +10 -9
  5. data/lib/twitter/configuration.rb +3 -0
  6. data/lib/twitter/entity/uri.rb +2 -2
  7. data/lib/twitter/error.rb +9 -5
  8. data/lib/twitter/factory.rb +1 -1
  9. data/lib/twitter/headers.rb +1 -1
  10. data/lib/twitter/media/photo.rb +3 -0
  11. data/lib/twitter/media/video.rb +3 -0
  12. data/lib/twitter/media/video_info.rb +3 -0
  13. data/lib/twitter/null_object.rb +4 -0
  14. data/lib/twitter/place.rb +5 -3
  15. data/lib/twitter/profile_banner.rb +3 -0
  16. data/lib/twitter/rate_limit.rb +4 -0
  17. data/lib/twitter/rest/direct_messages.rb +8 -8
  18. data/lib/twitter/rest/favorites.rb +4 -4
  19. data/lib/twitter/rest/friends_and_followers.rb +14 -14
  20. data/lib/twitter/rest/help.rb +4 -4
  21. data/lib/twitter/rest/lists.rb +19 -19
  22. data/lib/twitter/rest/media.rb +1 -1
  23. data/lib/twitter/rest/oauth.rb +3 -3
  24. data/lib/twitter/rest/places_and_geo.rb +4 -4
  25. data/lib/twitter/rest/request/multipart_with_file.rb +6 -0
  26. data/lib/twitter/rest/saved_searches.rb +6 -6
  27. data/lib/twitter/rest/search.rb +2 -2
  28. data/lib/twitter/rest/spam_reporting.rb +1 -1
  29. data/lib/twitter/rest/suggested_users.rb +3 -3
  30. data/lib/twitter/rest/timelines.rb +7 -7
  31. data/lib/twitter/rest/trends.rb +3 -3
  32. data/lib/twitter/rest/tweets.rb +22 -20
  33. data/lib/twitter/rest/users.rb +27 -27
  34. data/lib/twitter/rest/utils.rb +4 -4
  35. data/lib/twitter/streaming/client.rb +20 -19
  36. data/lib/twitter/streaming/connection.rb +1 -1
  37. data/lib/twitter/streaming/deleted_tweet.rb +1 -1
  38. data/lib/twitter/suggestion.rb +3 -0
  39. data/lib/twitter/token.rb +3 -0
  40. data/lib/twitter/tweet.rb +5 -1
  41. data/lib/twitter/utils.rb +1 -1
  42. data/lib/twitter/version.rb +41 -11
  43. data/twitter.gemspec +2 -2
  44. metadata +102 -137
  45. data/lib/twitter/value.rb +0 -40
@@ -10,7 +10,7 @@ module Twitter
10
10
 
11
11
  # Returns the current configuration used by Twitter
12
12
  #
13
- # @see https://dev.twitter.com/docs/api/1.1/get/help/configuration
13
+ # @see https://dev.twitter.com/rest/reference/get/help/configuration
14
14
  # @rate_limited Yes
15
15
  # @authentication Requires user context
16
16
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -21,7 +21,7 @@ module Twitter
21
21
 
22
22
  # Returns the list of languages supported by Twitter
23
23
  #
24
- # @see https://dev.twitter.com/docs/api/1.1/get/help/languages
24
+ # @see https://dev.twitter.com/rest/reference/get/help/languages
25
25
  # @rate_limited Yes
26
26
  # @authentication Requires user context
27
27
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -32,7 +32,7 @@ module Twitter
32
32
 
33
33
  # Returns {https://twitter.com/privacy Twitter's Privacy Policy}
34
34
  #
35
- # @see https://dev.twitter.com/docs/api/1.1/get/help/privacy
35
+ # @see https://dev.twitter.com/rest/reference/get/help/privacy
36
36
  # @rate_limited Yes
37
37
  # @authentication Requires user context
38
38
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -43,7 +43,7 @@ module Twitter
43
43
 
44
44
  # Returns {https://twitter.com/tos Twitter's Terms of Service}
45
45
  #
46
- # @see https://dev.twitter.com/docs/api/1.1/get/help/tos
46
+ # @see https://dev.twitter.com/rest/reference/get/help/tos
47
47
  # @rate_limited Yes
48
48
  # @authentication Requires user context
49
49
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -18,7 +18,7 @@ module Twitter
18
18
 
19
19
  # Returns all lists the authenticating or specified user subscribes to, including their own
20
20
  #
21
- # @see https://dev.twitter.com/docs/api/1.1/get/lists/list
21
+ # @see https://dev.twitter.com/rest/reference/get/lists/list
22
22
  # @rate_limited Yes
23
23
  # @authentication Requires user context
24
24
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -37,7 +37,7 @@ module Twitter
37
37
 
38
38
  # Show tweet timeline for members of the specified list
39
39
  #
40
- # @see https://dev.twitter.com/docs/api/1.1/get/lists/statuses
40
+ # @see https://dev.twitter.com/rest/reference/get/lists/statuses
41
41
  # @rate_limited Yes
42
42
  # @authentication Requires user context
43
43
  # @raise [Twitter::Error::NotFound] Error raised when supplied list is not found.
@@ -65,7 +65,7 @@ module Twitter
65
65
 
66
66
  # Removes the specified member from the list
67
67
  #
68
- # @see https://dev.twitter.com/docs/api/1.1/post/lists/members/destroy
68
+ # @see https://dev.twitter.com/rest/reference/post/lists/members/destroy
69
69
  # @rate_limited No
70
70
  # @authentication Requires user context
71
71
  # @raise [Twitter::Error::NotFound] Error raised when supplied list is not found.
@@ -87,7 +87,7 @@ module Twitter
87
87
 
88
88
  # List the lists the specified user has been added to
89
89
  #
90
- # @see https://dev.twitter.com/docs/api/1.1/get/lists/memberships
90
+ # @see https://dev.twitter.com/rest/reference/get/lists/memberships
91
91
  # @rate_limited Yes
92
92
  # @authentication Requires user context
93
93
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -107,7 +107,7 @@ module Twitter
107
107
 
108
108
  # Returns the subscribers of the specified list
109
109
  #
110
- # @see https://dev.twitter.com/docs/api/1.1/get/lists/subscribers
110
+ # @see https://dev.twitter.com/rest/reference/get/lists/subscribers
111
111
  # @rate_limited Yes
112
112
  # @authentication Requires user context
113
113
  # @raise [Twitter::Error::NotFound] Error raised when supplied list is not found.
@@ -126,7 +126,7 @@ module Twitter
126
126
 
127
127
  # Make the authenticated user follow the specified list
128
128
  #
129
- # @see https://dev.twitter.com/docs/api/1.1/post/lists/subscribers/create
129
+ # @see https://dev.twitter.com/rest/reference/post/lists/subscribers/create
130
130
  # @rate_limited No
131
131
  # @authentication Requires user context
132
132
  # @raise [Twitter::Error::NotFound] Error raised when supplied list is not found.
@@ -145,7 +145,7 @@ module Twitter
145
145
 
146
146
  # Check if a user is a subscriber of the specified list
147
147
  #
148
- # @see https://dev.twitter.com/docs/api/1.1/get/lists/subscribers/show
148
+ # @see https://dev.twitter.com/rest/reference/get/lists/subscribers/show
149
149
  # @rate_limited Yes
150
150
  # @authentication Requires user context
151
151
  # @raise [Twitter::Error::NotFound] Error raised when supplied list is not found.
@@ -167,7 +167,7 @@ module Twitter
167
167
 
168
168
  # Unsubscribes the authenticated user form the specified list
169
169
  #
170
- # @see https://dev.twitter.com/docs/api/1.1/post/lists/subscribers/destroy
170
+ # @see https://dev.twitter.com/rest/reference/post/lists/subscribers/destroy
171
171
  # @rate_limited No
172
172
  # @authentication Requires user context
173
173
  # @raise [Twitter::Error::NotFound] Error raised when supplied list is not found.
@@ -186,7 +186,7 @@ module Twitter
186
186
 
187
187
  # Adds specified members to a list
188
188
  #
189
- # @see https://dev.twitter.com/docs/api/1.1/post/lists/members/create_all
189
+ # @see https://dev.twitter.com/rest/reference/post/lists/members/create_all
190
190
  # @note Lists are limited to having 5,000 members, and you are limited to adding up to 100 members to a list at a time with this method.
191
191
  # @rate_limited No
192
192
  # @authentication Requires user context
@@ -210,7 +210,7 @@ module Twitter
210
210
 
211
211
  # Check if a user is a member of the specified list
212
212
  #
213
- # @see https://dev.twitter.com/docs/api/1.1/get/lists/members/show
213
+ # @see https://dev.twitter.com/rest/reference/get/lists/members/show
214
214
  # @authentication Requires user context
215
215
  # @rate_limited Yes
216
216
  # @raise [Twitter::Error::NotFound] Error raised when supplied list is not found.
@@ -231,7 +231,7 @@ module Twitter
231
231
 
232
232
  # Returns the members of the specified list
233
233
  #
234
- # @see https://dev.twitter.com/docs/api/1.1/get/lists/members
234
+ # @see https://dev.twitter.com/rest/reference/get/lists/members
235
235
  # @rate_limited Yes
236
236
  # @authentication Requires user context
237
237
  # @raise [Twitter::Error::NotFound] Error raised when supplied list is not found.
@@ -250,7 +250,7 @@ module Twitter
250
250
 
251
251
  # Add a member to a list
252
252
  #
253
- # @see https://dev.twitter.com/docs/api/1.1/post/lists/members/create
253
+ # @see https://dev.twitter.com/rest/reference/post/lists/members/create
254
254
  # @note Lists are limited to having 5,000 members.
255
255
  # @rate_limited No
256
256
  # @authentication Requires user context
@@ -273,7 +273,7 @@ module Twitter
273
273
 
274
274
  # Deletes the specified list
275
275
  #
276
- # @see https://dev.twitter.com/docs/api/1.1/post/lists/destroy
276
+ # @see https://dev.twitter.com/rest/reference/post/lists/destroy
277
277
  # @note Must be owned by the authenticated user.
278
278
  # @rate_limited No
279
279
  # @authentication Requires user context
@@ -294,7 +294,7 @@ module Twitter
294
294
 
295
295
  # Updates the specified list
296
296
  #
297
- # @see https://dev.twitter.com/docs/api/1.1/post/lists/update
297
+ # @see https://dev.twitter.com/rest/reference/post/lists/update
298
298
  # @rate_limited No
299
299
  # @authentication Requires user context
300
300
  # @raise [Twitter::Error::NotFound] Error raised when supplied list is not found.
@@ -317,7 +317,7 @@ module Twitter
317
317
 
318
318
  # Creates a new list for the authenticated user
319
319
  #
320
- # @see https://dev.twitter.com/docs/api/1.1/post/lists/create
320
+ # @see https://dev.twitter.com/rest/reference/post/lists/create
321
321
  # @note Accounts are limited to 20 lists.
322
322
  # @rate_limited No
323
323
  # @authentication Requires user context
@@ -334,7 +334,7 @@ module Twitter
334
334
 
335
335
  # Show the specified list
336
336
  #
337
- # @see https://dev.twitter.com/docs/api/1.1/get/lists/show
337
+ # @see https://dev.twitter.com/rest/reference/get/lists/show
338
338
  # @note Private lists will only be shown if the authenticated user owns the specified list.
339
339
  # @rate_limited Yes
340
340
  # @authentication Requires user context
@@ -354,7 +354,7 @@ module Twitter
354
354
 
355
355
  # List the lists the specified user follows
356
356
  #
357
- # @see https://dev.twitter.com/docs/api/1.1/get/lists/subscriptions
357
+ # @see https://dev.twitter.com/rest/reference/get/lists/subscriptions
358
358
  # @rate_limited Yes
359
359
  # @authentication Requires user context
360
360
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -370,7 +370,7 @@ module Twitter
370
370
 
371
371
  # Removes specified members from the list
372
372
  #
373
- # @see https://dev.twitter.com/docs/api/1.1/post/lists/members/destroy_all
373
+ # @see https://dev.twitter.com/rest/reference/post/lists/members/destroy_all
374
374
  # @rate_limited No
375
375
  # @authentication Requires user context
376
376
  # @raise [Twitter::Error::NotFound] Error raised when supplied list is not found.
@@ -392,7 +392,7 @@ module Twitter
392
392
 
393
393
  # Returns the lists owned by the specified Twitter user
394
394
  #
395
- # @see https://dev.twitter.com/docs/api/1.1/get/lists/ownerships
395
+ # @see https://dev.twitter.com/rest/reference/get/lists/ownerships
396
396
  # @rate_limited Yes
397
397
  # @authentication Requires user context
398
398
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -7,7 +7,7 @@ module Twitter
7
7
  module Media
8
8
  # Uploads media to attach to a tweet
9
9
  #
10
- # @see https://dev.twitter.com/docs/api/multiple-media-extended-entities
10
+ # @see https://dev.twitter.com/rest/public/uploading-media-multiple-photos
11
11
  # @rate_limited No
12
12
  # @authentication Requires user context
13
13
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -14,7 +14,7 @@ module Twitter
14
14
  # Only one bearer token may exist outstanding for an application, and repeated requests to this method
15
15
  # will yield the same already-existent token until it has been invalidated.
16
16
  #
17
- # @see https://dev.twitter.com/docs/api/1.1/post/oauth2/token
17
+ # @see https://dev.twitter.com/rest/reference/post/oauth2/token
18
18
  # @rate_limited No
19
19
  # @authentication Required
20
20
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -32,7 +32,7 @@ module Twitter
32
32
 
33
33
  # Allows a registered application to revoke an issued OAuth 2 Bearer Token by presenting its client credentials.
34
34
  #
35
- # @see https://dev.twitter.com/docs/api/1.1/post/oauth2/invalidate_token
35
+ # @see https://dev.twitter.com/rest/reference/post/oauth2/invalidate_token
36
36
  # @rate_limited No
37
37
  # @authentication Required
38
38
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -47,7 +47,7 @@ module Twitter
47
47
 
48
48
  # Allows a registered application to revoke an issued OAuth 2 Bearer Token by presenting its client credentials.
49
49
  #
50
- # @see https://dev.twitter.com/docs/api/1.1/post/oauth2/invalidate_token
50
+ # @see https://dev.twitter.com/rest/reference/post/oauth2/invalidate_token
51
51
  # @rate_limited No
52
52
  # @authentication Required
53
53
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -9,7 +9,7 @@ module Twitter
9
9
 
10
10
  # Returns all the information about a known place
11
11
  #
12
- # @see https://dev.twitter.com/docs/api/1.1/get/geo/id/:place_id
12
+ # @see https://dev.twitter.com/rest/reference/get/geo/id/:place_id
13
13
  # @rate_limited Yes
14
14
  # @authentication Requires user context
15
15
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -22,7 +22,7 @@ module Twitter
22
22
 
23
23
  # Searches for up to 20 places that can be used as a place_id
24
24
  #
25
- # @see https://dev.twitter.com/docs/api/1.1/get/geo/reverse_geocode
25
+ # @see https://dev.twitter.com/rest/reference/get/geo/reverse_geocode
26
26
  # @note This request is an informative call and will deliver generalized results about geography.
27
27
  # @rate_limited Yes
28
28
  # @authentication Requires user context
@@ -40,7 +40,7 @@ module Twitter
40
40
 
41
41
  # Search for places that can be attached to a {Twitter::REST::Tweets#update}
42
42
  #
43
- # @see https://dev.twitter.com/docs/api/1.1/get/geo/search
43
+ # @see https://dev.twitter.com/rest/reference/get/geo/search
44
44
  # @rate_limited Yes
45
45
  # @authentication Requires user context
46
46
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -62,7 +62,7 @@ module Twitter
62
62
 
63
63
  # Locates places near the given coordinates which are similar in name
64
64
  #
65
- # @see https://dev.twitter.com/docs/api/1.1/get/geo/similar_places
65
+ # @see https://dev.twitter.com/rest/reference/get/geo/similar_places
66
66
  # @note Conceptually, you would use this method to get a list of known places to choose from first. Then, if the desired place doesn't exist, make a request to {Twitter::REST::PlacesAndGeo#place} to create a new one. The token contained in the response is the token necessary to create a new place.
67
67
  # @rate_limited Yes
68
68
  # @authentication Requires user context
@@ -5,9 +5,11 @@ module Twitter
5
5
  class Request
6
6
  class MultipartWithFile < Faraday::Middleware
7
7
  CONTENT_TYPE = 'Content-Type'
8
+ BMP_REGEX = /\.bmp/i
8
9
  GIF_REGEX = /\.gif$/i
9
10
  JPEG_REGEX = /\.jpe?g/i
10
11
  PNG_REGEX = /\.png$/i
12
+ WEBP_REGEX = /\.webp/i
11
13
 
12
14
  def call(request)
13
15
  request.body.each do |key, value|
@@ -21,12 +23,16 @@ module Twitter
21
23
 
22
24
  def mime_type(path)
23
25
  case path
26
+ when BMP_REGEX
27
+ 'image/bmp'
24
28
  when GIF_REGEX
25
29
  'image/gif'
26
30
  when JPEG_REGEX
27
31
  'image/jpeg'
28
32
  when PNG_REGEX
29
33
  'image/png'
34
+ when WEBP_REGEX
35
+ 'image/webp'
30
36
  else
31
37
  'application/octet-stream'
32
38
  end
@@ -16,17 +16,17 @@ module Twitter
16
16
  # @overload saved_search(options = {})
17
17
  # Returns the authenticated user's saved search queries
18
18
  #
19
- # @see https://dev.twitter.com/docs/api/1.1/get/saved_searches/list
19
+ # @see https://dev.twitter.com/rest/reference/get/saved_searches/list
20
20
  # @param options [Hash] A customizable set of options.
21
21
  # @overload saved_search(*ids)
22
22
  # Retrieve the data for saved searches owned by the authenticating user
23
23
  #
24
- # @see https://dev.twitter.com/docs/api/1.1/get/saved_searches/show/:id
24
+ # @see https://dev.twitter.com/rest/reference/get/saved_searches/show/:id
25
25
  # @param ids [Enumerable<Integer>] A collection of saved search IDs.
26
26
  # @overload saved_search(*ids, options)
27
27
  # Retrieve the data for saved searches owned by the authenticating user
28
28
  #
29
- # @see https://dev.twitter.com/docs/api/1.1/get/saved_searches/show/:id
29
+ # @see https://dev.twitter.com/rest/reference/get/saved_searches/show/:id
30
30
  # @param ids [Enumerable<Integer>] A collection of saved search IDs.
31
31
  # @param options [Hash] A customizable set of options.
32
32
  def saved_searches(*args)
@@ -42,7 +42,7 @@ module Twitter
42
42
 
43
43
  # Retrieve the data for saved searches owned by the authenticating user
44
44
  #
45
- # @see https://dev.twitter.com/docs/api/1.1/get/saved_searches/show/:id
45
+ # @see https://dev.twitter.com/rest/reference/get/saved_searches/show/:id
46
46
  # @rate_limited Yes
47
47
  # @authentication Requires user context
48
48
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -55,7 +55,7 @@ module Twitter
55
55
 
56
56
  # Creates a saved search for the authenticated user
57
57
  #
58
- # @see https://dev.twitter.com/docs/api/1.1/post/saved_searches/create
58
+ # @see https://dev.twitter.com/rest/reference/post/saved_searches/create
59
59
  # @rate_limited No
60
60
  # @authentication Requires user context
61
61
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -69,7 +69,7 @@ module Twitter
69
69
 
70
70
  # Destroys saved searches for the authenticated user
71
71
  #
72
- # @see https://dev.twitter.com/docs/api/1.1/post/saved_searches/destroy/:id
72
+ # @see https://dev.twitter.com/rest/reference/post/saved_searches/destroy/:id
73
73
  # @note The search specified by ID must be owned by the authenticating user.
74
74
  # @rate_limited No
75
75
  # @authentication Requires user context
@@ -8,8 +8,8 @@ module Twitter
8
8
 
9
9
  # Returns tweets that match a specified query.
10
10
  #
11
- # @see https://dev.twitter.com/docs/api/1.1/get/search/tweets
12
- # @see https://dev.twitter.com/docs/using-search
11
+ # @see https://dev.twitter.com/rest/reference/get/search/tweets
12
+ # @see https://dev.twitter.com/rest/public/search
13
13
  # @note Please note that Twitter's search service and, by extension, the Search API is not meant to be an exhaustive source of Tweets. Not all Tweets will be indexed or made available via the search interface.
14
14
  # @rate_limited Yes
15
15
  # @authentication Requires user context
@@ -8,7 +8,7 @@ module Twitter
8
8
 
9
9
  # The users specified are blocked by the authenticated user and reported as spammers
10
10
  #
11
- # @see https://dev.twitter.com/docs/api/1.1/post/users/report_spam
11
+ # @see https://dev.twitter.com/rest/reference/post/users/report_spam
12
12
  # @rate_limited Yes
13
13
  # @authentication Requires user context
14
14
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -15,12 +15,12 @@ module Twitter
15
15
  # @overload suggestions(options = {})
16
16
  # Returns the list of suggested user categories
17
17
  #
18
- # @see https://dev.twitter.com/docs/api/1.1/get/users/suggestions
18
+ # @see https://dev.twitter.com/rest/reference/get/users/suggestions
19
19
  # @param options [Hash] A customizable set of options.
20
20
  # @overload suggestions(slug, options = {})
21
21
  # Returns the users in a given category
22
22
  #
23
- # @see https://dev.twitter.com/docs/api/1.1/get/users/suggestions/:slug
23
+ # @see https://dev.twitter.com/rest/reference/get/users/suggestions/:slug
24
24
  # @param slug [String] The short name of list or a category.
25
25
  # @param options [Hash] A customizable set of options.
26
26
  def suggestions(*args)
@@ -34,7 +34,7 @@ module Twitter
34
34
 
35
35
  # Access the users in a given category of the Twitter suggested user list and return their most recent Tweet if they are not a protected user
36
36
  #
37
- # @see https://dev.twitter.com/docs/api/1.1/get/users/suggestions/:slug/members
37
+ # @see https://dev.twitter.com/rest/reference/get/users/suggestions/:slug/members
38
38
  # @rate_limited Yes
39
39
  # @authentication Requires user context
40
40
  # @param slug [String] The short name of list or a category.
@@ -11,7 +11,7 @@ module Twitter
11
11
 
12
12
  # Returns the 20 most recent mentions (statuses containing @username) for the authenticating user
13
13
  #
14
- # @see https://dev.twitter.com/docs/api/1.1/get/statuses/mentions_timeline
14
+ # @see https://dev.twitter.com/rest/reference/get/statuses/mentions_timeline
15
15
  # @note This method can only return up to 800 Tweets.
16
16
  # @rate_limited Yes
17
17
  # @authentication Requires user context
@@ -29,7 +29,7 @@ module Twitter
29
29
 
30
30
  # Returns the 20 most recent Tweets posted by the specified user
31
31
  #
32
- # @see https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
32
+ # @see https://dev.twitter.com/rest/reference/get/statuses/user_timeline
33
33
  # @note This method can only return up to 3,200 Tweets.
34
34
  # @rate_limited Yes
35
35
  # @authentication Requires user context
@@ -51,7 +51,7 @@ module Twitter
51
51
 
52
52
  # Returns the 20 most recent retweets posted by the specified user
53
53
  #
54
- # @see https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
54
+ # @see https://dev.twitter.com/rest/reference/get/statuses/user_timeline
55
55
  # @note This method can only return up to 3,200 Tweets.
56
56
  # @rate_limited Yes
57
57
  # @authentication Requires user context
@@ -74,7 +74,7 @@ module Twitter
74
74
 
75
75
  # Returns the 20 most recent retweets posted by the authenticating user
76
76
  #
77
- # @see https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
77
+ # @see https://dev.twitter.com/rest/reference/get/statuses/user_timeline
78
78
  # @note This method can only return up to 3,200 Tweets.
79
79
  # @rate_limited Yes
80
80
  # @authentication Requires user context
@@ -95,7 +95,7 @@ module Twitter
95
95
 
96
96
  # Returns the 20 most recent Tweets, including retweets if they exist, posted by the authenticating user and the users they follow
97
97
  #
98
- # @see https://dev.twitter.com/docs/api/1.1/get/statuses/home_timeline
98
+ # @see https://dev.twitter.com/rest/reference/get/statuses/home_timeline
99
99
  # @note This method can only return up to 800 Tweets, including retweets.
100
100
  # @rate_limited Yes
101
101
  # @authentication Requires user context
@@ -115,7 +115,7 @@ module Twitter
115
115
 
116
116
  # Returns the 20 most recent retweets posted by users the authenticating user follow.
117
117
  #
118
- # @see https://dev.twitter.com/docs/api/1.1/get/statuses/home_timeline
118
+ # @see https://dev.twitter.com/rest/reference/get/statuses/home_timeline
119
119
  # @note This method can only return up to 800 Tweets, including retweets.
120
120
  # @rate_limited Yes
121
121
  # @authentication Requires user context
@@ -136,7 +136,7 @@ module Twitter
136
136
 
137
137
  # Returns the 20 most recent tweets of the authenticated user that have been retweeted by others
138
138
  #
139
- # @see https://dev.twitter.com/docs/api/1.1/get/statuses/retweets_of_me
139
+ # @see https://dev.twitter.com/rest/reference/get/statuses/retweets_of_me
140
140
  # @rate_limited Yes
141
141
  # @authentication Requires user context
142
142
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.