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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 8d6e26a619945618f7765e590a90debefc4ae1a3
4
- data.tar.gz: 704ea457d4e963094a28314c3683ddd36f7565d4
5
- SHA512:
6
- metadata.gz: 9831e99f3e7a8244581cd5328ca118e9180039076ef82d1295c6b219472b26287a85e686b84faa9810bba9fe3e773afb466eccfb7f9e97791336d6b05538d659
7
- data.tar.gz: 6e5943dad0b823655e33af044fabb2ba40354baf143c3dce735ef4a0c1ea33f230ac73afd325d48ba1a9e91207f9ab5c37b19d547a15515bb473793f857a0e5c
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 798135ed73e54bd85e71fc19b5dd62424f899b69
4
+ data.tar.gz: d46da3dca80843f6493df263bf623c7041091f0c
5
+ SHA512:
6
+ metadata.gz: dc3cea1cee6614e6fd72743526d9e3fe9396ae5fbd76e137281016a724df298ee142b06b9aac9f3ea010c123c70708515ddd1c4ce6754087326eb7fb7108c8b6
7
+ data.tar.gz: 09b7ce668855fa4171208d3c19b5599b19e990a9b59e9a0b789a905a0651bceedd7177fc6be12f82bea72270ddf7f2df67acc6692d41283b855abc16e71d5b0c
@@ -1,3 +1,11 @@
1
+ 5.15.0
2
+ ------
3
+ * [`NullObject#as_json` returns 'null'](https://github.com/sferik/twitter/commit/2979e703c09a45f012cb2c5b2d6663bf1f4d3351) ([@lukevmorris](https://twitter.com/lukevmorris))
4
+ * [Add methods to get to parameters of quoted tweet](https://github.com/sferik/twitter/commit/afd41a3e36cc94194a2110ba9adce13486ced9fd) ([@couhie](https://twitter.com/couhie))
5
+ * [Add additional mime_types for multi-part upload](https://github.com/sferik/twitter/commit/947fcdc9f7348f267d74933ffa43d191cf248a9c)
6
+ * [Fix bug where flat_pmap can return nil](https://github.com/sferik/twitter/commit/e22a5601ec702632510b3e983e50929ceb334b95)
7
+ * [Add new error codes](https://github.com/sferik/twitter/commit/1ce6b2f02d0f5f78435ee898e8f5b6d3db18d6f1)
8
+
1
9
  5.14.0
2
10
  ------
3
11
  * [Add `Twitter::NullObject#respond_to?`](https://github.com/sferik/twitter/commit/438e311d93f382960650e20898203c880ade6b25)
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2006-2013 Erik Michaels-Ober, John Nunemaker, Wynn Netherland, Steve Richert, Steve Agalloco
1
+ Copyright (c) 2006-2015 Erik Michaels-Ober, John Nunemaker, Wynn Netherland, Steve Richert, Steve Agalloco
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![Dependency Status](http://img.shields.io/gemnasium/sferik/twitter.svg)][gemnasium]
6
6
  [![Code Climate](http://img.shields.io/codeclimate/github/sferik/twitter.svg)][codeclimate]
7
7
  [![Coverage Status](http://img.shields.io/coveralls/sferik/twitter.svg)][coveralls]
8
- [![Inline docs](http://inch-ci.org/github/sferik/twitter.png)][inchpages]
8
+ [![Inline docs](http://inch-ci.org/github/sferik/twitter.svg?style=shields)][inchpages]
9
9
 
10
10
  [gem]: https://rubygems.org/gems/twitter
11
11
  [travis]: https://travis-ci.org/sferik/twitter
@@ -76,15 +76,15 @@ developer documentation.
76
76
  ### Streaming (Experimental)
77
77
  This library now offers support for the [Twitter Streaming API][streaming].
78
78
 
79
- [streaming]: https://dev.twitter.com/docs/streaming-apis
79
+ [streaming]: https://dev.twitter.com/streaming/overview
80
80
  [tweetstream]: http://rubygems.org/gems/tweetstream
81
81
 
82
82
  Site Streams are restricted to whitelisted accounts. To apply for access,
83
83
  [follow the steps in the Site Streams documentation][site-streams]. [User
84
84
  Streams][user-streams] do not require prior approval.
85
85
 
86
- [site-streams]: https://dev.twitter.com/docs/streaming-apis/streams/site#Applying_for_access
87
- [user-streams]: https://dev.twitter.com/docs/streaming-apis/streams/user
86
+ [site-streams]: https://dev.twitter.com/streaming/sitestreams#applyingforaccess
87
+ [user-streams]: https://dev.twitter.com/streaming/userstreams
88
88
 
89
89
  Unlike the rest of this library, this feature is not well tested and not
90
90
  recommended for production applications. I've decided to ship it as an
@@ -276,7 +276,7 @@ so if the authenticated user follows 200 people, calling
276
276
  request to the Twitter API will reduce the latency of your application by
277
277
  [about 500 ms][status].
278
278
 
279
- [status]: https://dev.twitter.com/status
279
+ [status]: https://dev.twitter.com/overview/status
280
280
 
281
281
  The last example might seem contrived ("Why would I call
282
282
  `client.friends.take(20)` twice?") but it applies to any
@@ -430,7 +430,7 @@ Twitter API v1.1 requires you to authenticate via OAuth, so you'll need to
430
430
  application, make sure to set the correct access level, otherwise you may see
431
431
  the error:
432
432
 
433
- [register]: https://dev.twitter.com/apps
433
+ [register]: https://apps.twitter.com/
434
434
 
435
435
  Read-only application cannot POST
436
436
 
@@ -543,7 +543,7 @@ For more usage examples, please see the full [documentation][].
543
543
 
544
544
  ![Entity-relationship diagram][erd]
545
545
 
546
- [erd]: https://github.com/sferik/twitter/raw/master/etc/erd.png "Entity-relationship diagram"
546
+ [erd]: https://cdn.rawgit.com/sferik/twitter/master/etc/erd.svg "Entity-relationship diagram"
547
547
 
548
548
  This entity-relationship diagram is generated programatically. If you add or
549
549
  remove any Twitter objects, please regenerate the ERD with the following
@@ -560,6 +560,7 @@ versions:
560
560
  * Ruby 1.9.3
561
561
  * Ruby 2.0.0
562
562
  * Ruby 2.1
563
+ * Ruby 2.2
563
564
  * JRuby 1.7 (Both 1.9 mode and 1.8 mode)
564
565
 
565
566
  If something doesn't work on one of these versions, it's a bug.
@@ -588,10 +589,10 @@ Constraint][pvc] with two digits of precision. For example:
588
589
  spec.add_dependency 'twitter', '~> 5.0'
589
590
 
590
591
  [semver]: http://semver.org/
591
- [pvc]: http://docs.rubygems.org/read/chapter/16#page74
592
+ [pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
592
593
 
593
594
  ## Copyright
594
- Copyright (c) 2006-2013 Erik Michaels-Ober, John Nunemaker, Wynn Netherland, Steve Richert, Steve Agalloco.
595
+ Copyright (c) 2006-2015 Erik Michaels-Ober, John Nunemaker, Wynn Netherland, Steve Richert, Steve Agalloco.
595
596
  See [LICENSE][] for details.
596
597
 
597
598
  [license]: LICENSE.md
@@ -1,7 +1,10 @@
1
+ require 'memoizable'
1
2
  require 'twitter/base'
2
3
 
3
4
  module Twitter
4
5
  class Configuration < Twitter::Base
6
+ include Memoizable
7
+
5
8
  # @return [Array<String>]
6
9
  attr_reader :non_username_paths
7
10
  # @return [Integer]
@@ -8,7 +8,7 @@ module Twitter
8
8
  end
9
9
 
10
10
  URL = URI
11
- Uri = URI # rubocop:disable ConstantName
12
- Url = URI # rubocop:disable ConstantName
11
+ Uri = URI
12
+ Url = URI
13
13
  end
14
14
  end
@@ -8,7 +8,7 @@ module Twitter
8
8
  # @return [Twitter::RateLimit]
9
9
  attr_reader :rate_limit
10
10
 
11
- # If error code is missing see https://dev.twitter.com/docs/error-codes-responses
11
+ # If error code is missing see https://dev.twitter.com/overview/api/response-codes
12
12
  module Code
13
13
  AUTHENTICATION_PROBLEM = 32
14
14
  RESOURCE_NOT_FOUND = 34
@@ -28,10 +28,14 @@ module Twitter
28
28
  OVER_UPDATE_LIMIT = 185
29
29
  DUPLICATE_STATUS = 187
30
30
  BAD_AUTHENTICATION_DATA = 215
31
+ SPAM = 226
31
32
  LOGIN_VERIFICATION_NEEDED = 231
32
33
  ENDPOINT_RETIRED = 251
34
+ CANNOT_WRITE = 261
35
+ CANNOT_MUTE = 271
36
+ CANNOT_UNMUTE = 272
33
37
  end
34
- Codes = Code # rubocop:disable ConstantName
38
+ Codes = Code
35
39
 
36
40
  class << self
37
41
  # Create a new error from an HTTP response
@@ -133,7 +137,7 @@ module Twitter
133
137
 
134
138
  # Raised when a Tweet has already been posted
135
139
  DuplicateStatus = Class.new(Forbidden)
136
- AlreadyPosted = DuplicateStatus # rubocop:disable ConstantName
140
+ AlreadyPosted = DuplicateStatus
137
141
 
138
142
  # Raised when Twitter returns the HTTP status code 404
139
143
  NotFound = Class.new(ClientError)
@@ -149,8 +153,8 @@ module Twitter
149
153
 
150
154
  # Raised when Twitter returns the HTTP status code 429
151
155
  TooManyRequests = Class.new(ClientError)
152
- EnhanceYourCalm = TooManyRequests # rubocop:disable ConstantName
153
- RateLimited = TooManyRequests # rubocop:disable ConstantName
156
+ EnhanceYourCalm = TooManyRequests
157
+ RateLimited = TooManyRequests
154
158
 
155
159
  # Raised when Twitter returns a 5xx HTTP status code
156
160
  ServerError = Class.new(self)
@@ -10,7 +10,7 @@ module Twitter
10
10
  # @return [Twitter::Base]
11
11
  def new(method, klass, attrs = {})
12
12
  type = attrs.fetch(method.to_sym)
13
- const_name = type.gsub(/\/(.?)/) { "::#{Regexp.last_match[1].upcase}" }.gsub(/(?:^|_)(.)/) { Regexp.last_match[1].upcase }
13
+ const_name = type.split('_').collect(&:capitalize).join
14
14
  klass.const_get(const_name.to_sym).new(attrs)
15
15
  end
16
16
  end
@@ -56,7 +56,7 @@ module Twitter
56
56
 
57
57
  # Base64.strict_encode64 is not available on Ruby 1.8.7
58
58
  def strict_encode64(str)
59
- Base64.encode64(str).gsub("\n", '')
59
+ Base64.encode64(str).delete("\n")
60
60
  end
61
61
  end
62
62
  end
@@ -1,8 +1,11 @@
1
+ require 'memoizable'
1
2
  require 'twitter/identity'
2
3
 
3
4
  module Twitter
4
5
  module Media
5
6
  class Photo < Twitter::Identity
7
+ include Memoizable
8
+
6
9
  # @return [Array<Integer>]
7
10
  attr_reader :indices
8
11
  display_uri_attr_reader
@@ -1,9 +1,12 @@
1
+ require 'memoizable'
1
2
  require 'twitter/identity'
2
3
  require 'twitter/media/video_info'
3
4
 
4
5
  module Twitter
5
6
  module Media
6
7
  class Video < Twitter::Identity
8
+ include Memoizable
9
+
7
10
  # @return [Array<Integer>]
8
11
  attr_reader :indices
9
12
  display_uri_attr_reader
@@ -1,8 +1,11 @@
1
+ require 'memoizable'
1
2
  require 'twitter/variant'
2
3
 
3
4
  module Twitter
4
5
  module Media
5
6
  class VideoInfo < Twitter::Base
7
+ include Memoizable
8
+
6
9
  # @return [Array<Integer]
7
10
  attr_reader :aspect_ratio
8
11
 
@@ -41,5 +41,9 @@ module Twitter
41
41
  def nil?
42
42
  true
43
43
  end
44
+
45
+ def as_json(*)
46
+ 'null'
47
+ end
44
48
  end
45
49
  end
@@ -1,8 +1,10 @@
1
- require 'equalizer'
1
+ require 'memoizable'
2
2
  require 'twitter/identity'
3
3
 
4
4
  module Twitter
5
5
  class Place < Twitter::Identity
6
+ include Memoizable
7
+
6
8
  # @return [Hash]
7
9
  attr_reader :attributes
8
10
  # @return [String]
@@ -26,7 +28,7 @@ module Twitter
26
28
 
27
29
  # @return [String]
28
30
  def country_code
29
- @attrs[:country_code] || @attrs[:countryCode] # rubocop:disable SymbolName
31
+ @attrs[:country_code] || @attrs[:countryCode]
30
32
  end
31
33
  memoize :country_code
32
34
 
@@ -38,7 +40,7 @@ module Twitter
38
40
 
39
41
  # @return [String]
40
42
  def place_type
41
- @attrs[:place_type] || @attrs[:placeType] && @attrs[:placeType][:name] # rubocop:disable SymbolName
43
+ @attrs[:place_type] || @attrs[:placeType] && @attrs[:placeType][:name]
42
44
  end
43
45
  memoize :place_type
44
46
  end
@@ -1,7 +1,10 @@
1
+ require 'memoizable'
1
2
  require 'twitter/base'
2
3
 
3
4
  module Twitter
4
5
  class ProfileBanner < Twitter::Base
6
+ include Memoizable
7
+
5
8
  # Returns an array of photo sizes
6
9
  #
7
10
  # @return [Array<Twitter::Size>]
@@ -1,5 +1,9 @@
1
+ require 'memoizable'
2
+
1
3
  module Twitter
2
4
  class RateLimit < Twitter::Base
5
+ include Memoizable
6
+
3
7
  # @return [Integer]
4
8
  def limit
5
9
  limit = @attrs['x-rate-limit-limit']
@@ -12,7 +12,7 @@ module Twitter
12
12
 
13
13
  # Returns the 20 most recent direct messages sent to the authenticating user
14
14
  #
15
- # @see https://dev.twitter.com/docs/api/1.1/get/direct_messages
15
+ # @see https://dev.twitter.com/rest/reference/get/direct_messages
16
16
  # @note This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
17
17
  # @rate_limited Yes
18
18
  # @authentication Requires user context
@@ -29,7 +29,7 @@ module Twitter
29
29
 
30
30
  # Returns the 20 most recent direct messages sent by the authenticating user
31
31
  #
32
- # @see https://dev.twitter.com/docs/api/1.1/get/direct_messages/sent
32
+ # @see https://dev.twitter.com/rest/reference/get/direct_messages/sent
33
33
  # @note This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
34
34
  # @rate_limited Yes
35
35
  # @authentication Requires user context
@@ -46,7 +46,7 @@ module Twitter
46
46
 
47
47
  # Returns a direct message
48
48
  #
49
- # @see https://dev.twitter.com/docs/api/1.1/get/direct_messages/show
49
+ # @see https://dev.twitter.com/rest/reference/get/direct_messages/show
50
50
  # @note This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
51
51
  # @rate_limited Yes
52
52
  # @authentication Requires user context
@@ -67,7 +67,7 @@ module Twitter
67
67
  # @overload direct_messages(options = {})
68
68
  # Returns the 20 most recent direct messages sent to the authenticating user
69
69
  #
70
- # @see https://dev.twitter.com/docs/api/1.1/get/direct_messages
70
+ # @see https://dev.twitter.com/rest/reference/get/direct_messages
71
71
  # @param options [Hash] A customizable set of options.
72
72
  # @option options [Integer] :since_id Returns results with an ID greater than (that is, more recent than) the specified ID.
73
73
  # @option options [Integer] :max_id Returns results with an ID less than (that is, older than) or equal to the specified ID.
@@ -76,12 +76,12 @@ module Twitter
76
76
  # @overload direct_messages(*ids)
77
77
  # Returns direct messages
78
78
  #
79
- # @see https://dev.twitter.com/docs/api/1.1/get/direct_messages/show
79
+ # @see https://dev.twitter.com/rest/reference/get/direct_messages/show
80
80
  # @param ids [Enumerable<Integer>] A collection of direct message IDs.
81
81
  # @overload direct_messages(*ids, options)
82
82
  # Returns direct messages
83
83
  #
84
- # @see https://dev.twitter.com/docs/api/1.1/get/direct_messages/show
84
+ # @see https://dev.twitter.com/rest/reference/get/direct_messages/show
85
85
  # @param ids [Enumerable<Integer>] A collection of direct message IDs.
86
86
  # @param options [Hash] A customizable set of options.
87
87
  def direct_messages(*args)
@@ -97,7 +97,7 @@ module Twitter
97
97
 
98
98
  # Destroys direct messages
99
99
  #
100
- # @see https://dev.twitter.com/docs/api/1.1/post/direct_messages/destroy
100
+ # @see https://dev.twitter.com/rest/reference/post/direct_messages/destroy
101
101
  # @note This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
102
102
  # @rate_limited No
103
103
  # @authentication Requires user context
@@ -115,7 +115,7 @@ module Twitter
115
115
 
116
116
  # Sends a new direct message to the specified user from the authenticating user
117
117
  #
118
- # @see https://dev.twitter.com/docs/api/1.1/post/direct_messages/new
118
+ # @see https://dev.twitter.com/rest/reference/post/direct_messages/new
119
119
  # @rate_limited No
120
120
  # @authentication Requires user context
121
121
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -11,7 +11,7 @@ module Twitter
11
11
  include Twitter::REST::Utils
12
12
  include Twitter::Utils
13
13
 
14
- # @see https://dev.twitter.com/docs/api/1.1/get/favorites/list
14
+ # @see https://dev.twitter.com/rest/reference/get/favorites/list
15
15
  # @rate_limited Yes
16
16
  # @authentication Requires user context
17
17
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -37,7 +37,7 @@ module Twitter
37
37
 
38
38
  # Un-favorites the specified Tweets as the authenticating user
39
39
  #
40
- # @see https://dev.twitter.com/docs/api/1.1/post/favorites/destroy
40
+ # @see https://dev.twitter.com/rest/reference/post/favorites/destroy
41
41
  # @rate_limited No
42
42
  # @authentication Requires user context
43
43
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -55,7 +55,7 @@ module Twitter
55
55
 
56
56
  # Favorites the specified Tweets as the authenticating user
57
57
  #
58
- # @see https://dev.twitter.com/docs/api/1.1/post/favorites/create
58
+ # @see https://dev.twitter.com/rest/reference/post/favorites/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.
@@ -81,7 +81,7 @@ module Twitter
81
81
 
82
82
  # Favorites the specified Tweets as the authenticating user and raises an error if one has already been favorited
83
83
  #
84
- # @see https://dev.twitter.com/docs/api/1.1/post/favorites/create
84
+ # @see https://dev.twitter.com/rest/reference/post/favorites/create
85
85
  # @rate_limited No
86
86
  # @authentication Requires user context
87
87
  # @raise [Twitter::Error::AlreadyFavorited] Error raised when tweet has already been favorited.
@@ -12,7 +12,7 @@ module Twitter
12
12
  include Twitter::REST::Utils
13
13
  include Twitter::Utils
14
14
 
15
- # @see https://dev.twitter.com/docs/api/1.1/get/friends/ids
15
+ # @see https://dev.twitter.com/rest/reference/get/friends/ids
16
16
  # @rate_limited Yes
17
17
  # @authentication Requires user context
18
18
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -30,7 +30,7 @@ module Twitter
30
30
  cursor_from_response_with_user(:ids, nil, '/1.1/friends/ids.json', args)
31
31
  end
32
32
 
33
- # @see https://dev.twitter.com/docs/api/1.1/get/followers/ids
33
+ # @see https://dev.twitter.com/rest/reference/get/followers/ids
34
34
  # @rate_limited Yes
35
35
  # @authentication Requires user context
36
36
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -50,7 +50,7 @@ module Twitter
50
50
 
51
51
  # Returns the relationship of the authenticating user to the comma separated list of up to 100 screen_names or user_ids provided. Values for connections can be: following, following_requested, followed_by, none.
52
52
  #
53
- # @see https://dev.twitter.com/docs/api/1.1/get/friendships/lookup
53
+ # @see https://dev.twitter.com/rest/reference/get/friendships/lookup
54
54
  # @rate_limited Yes
55
55
  # @authentication Requires user context
56
56
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -68,7 +68,7 @@ module Twitter
68
68
 
69
69
  # Returns an array of numeric IDs for every user who has a pending request to follow the authenticating user
70
70
  #
71
- # @see https://dev.twitter.com/docs/api/1.1/get/friendships/incoming
71
+ # @see https://dev.twitter.com/rest/reference/get/friendships/incoming
72
72
  # @rate_limited Yes
73
73
  # @authentication Requires user context
74
74
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -80,7 +80,7 @@ module Twitter
80
80
 
81
81
  # Returns an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request
82
82
  #
83
- # @see https://dev.twitter.com/docs/api/1.1/get/friendships/outgoing
83
+ # @see https://dev.twitter.com/rest/reference/get/friendships/outgoing
84
84
  # @rate_limited Yes
85
85
  # @authentication Requires user context
86
86
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -92,7 +92,7 @@ module Twitter
92
92
 
93
93
  # Allows the authenticating user to follow the specified users, unless they are already followed
94
94
  #
95
- # @see https://dev.twitter.com/docs/api/1.1/post/friendships/create
95
+ # @see https://dev.twitter.com/rest/reference/post/friendships/create
96
96
  # @rate_limited Yes
97
97
  # @authentication Requires user context
98
98
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -118,7 +118,7 @@ module Twitter
118
118
 
119
119
  # Allows the authenticating user to follow the specified users
120
120
  #
121
- # @see https://dev.twitter.com/docs/api/1.1/post/friendships/create
121
+ # @see https://dev.twitter.com/rest/reference/post/friendships/create
122
122
  # @rate_limited No
123
123
  # @authentication Requires user context
124
124
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -140,7 +140,7 @@ module Twitter
140
140
 
141
141
  # Allows the authenticating user to unfollow the specified users
142
142
  #
143
- # @see https://dev.twitter.com/docs/api/1.1/post/friendships/destroy
143
+ # @see https://dev.twitter.com/rest/reference/post/friendships/destroy
144
144
  # @rate_limited No
145
145
  # @authentication Requires user context
146
146
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -158,7 +158,7 @@ module Twitter
158
158
 
159
159
  # Allows one to enable or disable retweets and device notifications from the specified user.
160
160
  #
161
- # @see https://dev.twitter.com/docs/api/1.1/post/friendships/update
161
+ # @see https://dev.twitter.com/rest/reference/post/friendships/update
162
162
  # @rate_limited No
163
163
  # @authentication Requires user context
164
164
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -174,7 +174,7 @@ module Twitter
174
174
 
175
175
  # Returns detailed information about the relationship between two users
176
176
  #
177
- # @see https://dev.twitter.com/docs/api/1.1/get/friendships/show
177
+ # @see https://dev.twitter.com/rest/reference/get/friendships/show
178
178
  # @rate_limited Yes
179
179
  # @authentication Requires user context
180
180
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -194,7 +194,7 @@ module Twitter
194
194
 
195
195
  # Test for the existence of friendship between two users
196
196
  #
197
- # @see https://dev.twitter.com/docs/api/1.1/get/friendships/show
197
+ # @see https://dev.twitter.com/rest/reference/get/friendships/show
198
198
  # @rate_limited Yes
199
199
  # @authentication Requires user context
200
200
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -208,7 +208,7 @@ module Twitter
208
208
 
209
209
  # Returns a cursored collection of user objects for users following the specified user.
210
210
  #
211
- # @see https://dev.twitter.com/docs/api/1.1/get/followers/list
211
+ # @see https://dev.twitter.com/rest/reference/get/followers/list
212
212
  # @rate_limited Yes
213
213
  # @authentication Requires user context
214
214
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -232,7 +232,7 @@ module Twitter
232
232
 
233
233
  # Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
234
234
  #
235
- # @see https://dev.twitter.com/docs/api/1.1/get/friends/list
235
+ # @see https://dev.twitter.com/rest/reference/get/friends/list
236
236
  # @rate_limited Yes
237
237
  # @authentication Requires user context
238
238
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
@@ -256,7 +256,7 @@ module Twitter
256
256
  alias_method :following, :friends
257
257
 
258
258
  # Returns a collection of user IDs that the currently authenticated user does not want to receive retweets from.
259
- # @see https://dev.twitter.com/docs/api/1.1/get/friendships/no_retweets/ids
259
+ # @see https://dev.twitter.com/rest/reference/get/friendships/no_retweets/ids
260
260
  # @rate_limited Yes
261
261
  # @authentication Requires user context
262
262
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.