Class: Upwork::Api::Routers::Auth
- Inherits:
-
Object
- Object
- Upwork::Api::Routers::Auth
- Defined in:
- lib/upwork/api/routers/auth.rb
Overview
Get My Info
Constant Summary collapse
- ENTRY_POINT =
'api'
Instance Method Summary collapse
-
#get_user_info ⇒ Object
Get info of authenticated user.
-
#initialize(client) ⇒ Auth
constructor
Init.
Constructor Details
#initialize(client) ⇒ Auth
Init
Arguments:
client: (Client)
25 26 27 28 |
# File 'lib/upwork/api/routers/auth.rb', line 25 def initialize(client) @client = client @client.epoint = ENTRY_POINT end |
Instance Method Details
#get_user_info ⇒ Object
Get info of authenticated user
31 32 33 34 |
# File 'lib/upwork/api/routers/auth.rb', line 31 def get_user_info $LOG.i "running " + __method__.to_s @client.get '/auth/v1/info' end |