module Redd::Clients::Base::Identity
Methods that require the “identity” scope
Public Instance Methods
me()
click to toggle source
@return [Objects::User] The logged-in user.
# File lib/redd/clients/base/identity.rb, line 7 def me response = get('/api/v1/me') object_from_body(kind: 't2', data: response.body) end
my_prefs()
click to toggle source
@return [Objects::Base] Your current preferences. @see www.reddit.com/dev/api/oauth#GET_api_v1_me_prefs
# File lib/redd/clients/base/identity.rb, line 14 def my_prefs response = get('/api/v1/me/prefs') # Basically an uneditable mashie. Objects::Base.new(self, response.body) end