class Upwork::Api::Routers::Auth

Get My Info

Constants

ENTRY_POINT

Public Class Methods

new(client) click to toggle source

Init

Arguments:

client: (Client)
# File lib/upwork/api/routers/auth.rb, line 25
def initialize(client)
  @client = client
  @client.epoint = ENTRY_POINT 
end

Public Instance Methods

get_user_info() click to toggle source

Get info of authenticated user

# 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