Module: KewegoParty::Client::Auth
- Included in:
- KewegoParty::Client
- Defined in:
- lib/kewego_party/client/auth.rb
Instance Method Summary collapse
-
#auth_get_auth_token(options = {}) ⇒ String
Generates a user token needed for adding and updating data in kewego.
-
#auth_get_login_token(options = {}) ⇒ String
Generates a user token needed for adding and updating data in kewego.
Instance Method Details
#auth_get_auth_token(options = {}) ⇒ String
Generates a user token needed for adding and updating data in kewego
13 14 15 16 17 |
# File 'lib/kewego_party/client/auth.rb', line 13 def auth_get_auth_token( = {}) = {:appToken => app_token, :username => self.login, :password => self.password}.merge response = get('/api/getAuthToken/', , 2) process_response(response, [:token]) end |
#auth_get_login_token(options = {}) ⇒ String
Generates a user token needed for adding and updating data in kewego
28 29 30 31 32 |
# File 'lib/kewego_party/client/auth.rb', line 28 def auth_get_login_token( = {}) = {:appToken => app_token, :username => self.login, :password => self.password}.merge response = get('/api/getLoginToken/', , 2) process_response(response, [:token]) end |