Class: Auth
Instance Method Summary
collapse
Methods inherited from ApiModule
#initialize
Constructor Details
This class inherits a constructor from ApiModule
Instance Method Details
#login(options:) ⇒ Object
2
3
4
5
6
7
|
# File 'lib/api/auth/auth.rb', line 2
def login(options:)
method = "POST"
endpoint = "user/login"
uri = ApiUri::build_uri(endpoint)
return @client.request_json(method, uri, options)
end
|
#login_otp(options:) ⇒ Object
9
10
11
12
13
14
|
# File 'lib/api/auth/auth.rb', line 9
def login_otp(options:)
method = "POST"
endpoint = "user/login/otp"
uri = ApiUri::build_uri(endpoint)
return @client.request_json(method, uri, options)
end
|
#logout ⇒ Object
16
17
18
19
20
21
|
# File 'lib/api/auth/auth.rb', line 16
def logout()
method = "POST"
endpoint = "user/logout"
uri = ApiUri::build_uri(endpoint)
return @client.request_json(method, uri)
end
|
#signup(options:) ⇒ Object
23
24
25
26
27
28
|
# File 'lib/api/auth/auth.rb', line 23
def signup(options:)
method = "POST"
endpoint = "user/signup"
uri = ApiUri::build_uri(endpoint)
return @client.request_json(method, uri, options)
end
|