Module: Driftrock::Service::Api::Visitor
Defined Under Namespace
Modules: URLs
Instance Method Summary
collapse
#get, #post, #put, #symbolise_keys
Instance Method Details
#attempt_password_reset(token, new_password) ⇒ Object
20
21
22
|
# File 'lib/driftrock-service/api/visitor.rb', line 20
def attempt_password_reset(token, new_password)
post("#{URLs::BASE}/attempt_password_reset", {token: token, new_password: new_password})
end
|
#reset_password(email) ⇒ Object
16
17
18
|
# File 'lib/driftrock-service/api/visitor.rb', line 16
def reset_password(email)
get("#{URLs::BASE}/reset_password", {user_email: email})
end
|
#visitor_apps(opts = {}) ⇒ Object
12
13
14
|
# File 'lib/driftrock-service/api/visitor.rb', line 12
def visitor_apps(opts = {})
get(URLs::APPS, opts)
end
|