Class: Disqussion::Users
- Defined in:
- lib/disqussion/client/users.rb
Instance Method Summary collapse
-
#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) ⇒ Object
BETA Returns a list of threads a user has participated in sorted by last activity.
-
#listActivity(*args) ⇒ Object
BETA Returns a list of various activity types made by the user.
-
#listFollowers(*args) ⇒ Object
BETA Returns a list of users a user is being followed by.
-
#listFollowing(*args) ⇒ Object
BETA Returns a list of users a user is following.
-
#listForums(*args) ⇒ Hashie::Rash
Returns a list of forums a user owns.
-
#listMostActiveForums(*args) ⇒ Object
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
#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
15 16 17 18 19 20 |
# File 'lib/disqussion/client/users.rb', line 15 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
34 35 36 37 38 39 |
# File 'lib/disqussion/client/users.rb', line 34 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
57 58 59 60 |
# File 'lib/disqussion/client/users.rb', line 57 def listActiveForums(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('users/listActiveForums', ) end |
#listActiveThreads(*args) ⇒ Object
BETA Returns a list of threads a user has participated in sorted by last activity.
64 65 66 |
# File 'lib/disqussion/client/users.rb', line 64 def listActiveThreads(*args) end |
#listActivity(*args) ⇒ Object
BETA Returns a list of various activity types made by the user.
70 71 72 |
# File 'lib/disqussion/client/users.rb', line 70 def listActivity(*args) end |
#listFollowers(*args) ⇒ Object
BETA Returns a list of users a user is being followed by.
76 77 78 |
# File 'lib/disqussion/client/users.rb', line 76 def listFollowers(*args) end |
#listFollowing(*args) ⇒ Object
BETA Returns a list of users a user is following.
82 83 84 |
# File 'lib/disqussion/client/users.rb', line 82 def listFollowing(*args) 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
102 103 104 105 |
# File 'lib/disqussion/client/users.rb', line 102 def listForums(*args) = args.last.is_a?(Hash) ? args.pop : {} response = get('users/listForums', ) end |
#listMostActiveForums(*args) ⇒ Object
BETA Returns a list of forums a user has been active on recenty, sorted by the user's activity.
109 110 111 |
# File 'lib/disqussion/client/users.rb', line 109 def listMostActiveForums(*args) 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
131 132 133 134 |
# File 'lib/disqussion/client/users.rb', line 131 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
148 149 150 151 152 153 |
# File 'lib/disqussion/client/users.rb', line 148 def unfollow(*args) = args.last.is_a?(Hash) ? args.pop : {} target = args.first (target, ) response = post('users/unfollow', ) end |