Class: Disqussion::Users
- Defined in:
- lib/disqussion/client/users.rb
Instance Method Summary collapse
-
#checkUsername(*args) ⇒ Object
Updates username for the user, fails if username does not meet requirements, or is taken by another user @accessibility: public key, secret key @methods: POST @format: json, jsonp @authenticated: true @limited: false @see: http://disqus.com/api/3.0/users/checkUsername.json.
-
#details(*args) ⇒ Hashie::Rash
Returns details of a user @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/users/details.json.
-
#follow(*args) ⇒ Hashie::Rash
Follow a user @accessibility: public key, secret key @methods: POST @format: json, jsonp @authenticated: true @limited: false @see: http://disqus.com/api/3.0/users/details.json.
-
#listActiveForums(*args) ⇒ Hashie::Rash
Returns a list of forums a user has been active on.
-
#listActiveThreads(*args) ⇒ Hashie::Rash
BETA Returns a list of threads a user has participated in sorted by last activity.
-
#listActivity(*args) ⇒ Hashie::Rash
BETA Returns a list of various activity types made by the user.
-
#listFollowers(*args) ⇒ Hashie::Rash
BETA Returns a list of users a user is being followed by.
-
#listFollowing(*args) ⇒ Hashie::Rash
BETA Returns a list of users a user is following.
-
#listForums(*args) ⇒ Hashie::Rash
Returns a list of forums a user owns.
-
#listMostActiveForums(*args) ⇒ Hashie::Rash
BETA Returns a list of forums a user has been active on recenty, sorted by the user's activity.
-
#listPosts(*args) ⇒ Hashie::Rash
Returns a list of posts made by the user.
-
#unfollow(*args) ⇒ Hashie::Rash
Unfollow a user @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: true @limited: false @see: http://disqus.com/api/3.0/users/details.json.
Methods included from Request
Instance Method Details
#checkUsername(*args) ⇒ Object
Updates username for the user, fails if username does not meet requirements, or is taken by another user @accessibility: public key, secret key @methods: POST @format: json, jsonp @authenticated: true @limited: false @see: http://disqus.com/api/3.0/users/checkUsername.json
13 14 15 16 17 |
# File 'lib/disqussion/client/users.rb', line 13 def checkUsername(*args) = args.last.is_a?(Hash) ? args.pop : {} [:username] = args.first response = post('users/checkUsername', ) end |
#details(*args) ⇒ Hashie::Rash
Returns details of a user @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/users/details.json
32 33 34 35 36 37 |
# File 'lib/disqussion/client/users.rb', line 32 def details(*args) = args.last.is_a?(Hash) ? args.pop : {} user = args.first (user, ) response = get('users/details', ) end |
#follow(*args) ⇒ Hashie::Rash
Follow a user @accessibility: public key, secret key @methods: POST @format: json, jsonp @authenticated: true @limited: false @see: http://disqus.com/api/3.0/users/details.json
51 52 53 54 55 56 |
# File 'lib/disqussion/client/users.rb', line 51 def follow(*args) = args.last.is_a?(Hash) ? args.pop : {} target = args.first (target, ) response = post('users/follow', ) end |
#listActiveForums(*args) ⇒ Hashie::Rash
Returns a list of forums a user has been active on. @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/users/listActiveForums.json
74 75 76 77 |
# File 'lib/disqussion/client/users.rb', line 74 def listActiveForums(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('users/listActiveForums', ) end |
#listActiveThreads(*args) ⇒ Hashie::Rash
BETA Returns a list of threads a user has participated in sorted by last activity. @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: true @see: http://disqus.com/api/3.0/users/listActiveThreads.json
99 100 101 102 |
# File 'lib/disqussion/client/users.rb', line 99 def listActiveThreads(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('users/listActiveThreads', ) end |
#listActivity(*args) ⇒ Hashie::Rash
BETA Returns a list of various activity types made by the user. @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: true @see: http://disqus.com/api/3.0/users/listActivity.json
123 124 125 126 |
# File 'lib/disqussion/client/users.rb', line 123 def listActivity(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('users/listActivity', ) end |
#listFollowers(*args) ⇒ Hashie::Rash
BETA Returns a list of users a user is being followed by. @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: true @see: http://disqus.com/api/3.0/users/listFollowers.json
144 145 146 147 |
# File 'lib/disqussion/client/users.rb', line 144 def listFollowers(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('users/listFollowers', ) end |
#listFollowing(*args) ⇒ Hashie::Rash
BETA Returns a list of users a user is following. @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: true @see: http://disqus.com/api/3.0/users/listFollowing.json
165 166 167 168 |
# File 'lib/disqussion/client/users.rb', line 165 def listFollowing(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('users/listFollowing', ) end |
#listForums(*args) ⇒ Hashie::Rash
Returns a list of forums a user owns. @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/users/listForums.json
186 187 188 189 |
# File 'lib/disqussion/client/users.rb', line 186 def listForums(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('users/listForums', ) end |
#listMostActiveForums(*args) ⇒ Hashie::Rash
BETA Returns a list of forums a user has been active on recenty, sorted by the user's activity. @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: true @see: http://disqus.com/api/3.0/users/listMostActiveForums.json
204 205 206 207 |
# File 'lib/disqussion/client/users.rb', line 204 def listMostActiveForums(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('users/listMostActiveForums', ) end |
#listPosts(*args) ⇒ Hashie::Rash
Returns a list of posts made by the user. @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: false @limited: false @see: http://disqus.com/api/3.0/users/listPosts.json
227 228 229 230 |
# File 'lib/disqussion/client/users.rb', line 227 def listPosts(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('users/listPosts', ) end |
#unfollow(*args) ⇒ Hashie::Rash
Unfollow a user @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: true @limited: false @see: http://disqus.com/api/3.0/users/details.json
244 245 246 247 248 249 |
# File 'lib/disqussion/client/users.rb', line 244 def unfollow(*args) = args.last.is_a?(Hash) ? args.pop : {} target = args.first (target, ) response = post('users/unfollow', ) end |