Class: Upwork::Api::Routers::Freelancers::Profile

Inherits:
Object
  • Object
show all
Defined in:
lib/upwork/api/routers/freelancers/profile.rb

Overview

Freelancer’s profile info

Constant Summary collapse

ENTRY_POINT =
'api'

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Profile

Init

Arguments:

client: (Client)


26
27
28
29
# File 'lib/upwork/api/routers/freelancers/profile.rb', line 26

def initialize(client)
  @client = client
  @client.epoint = ENTRY_POINT 
end

Instance Method Details

#get_specific(key) ⇒ Object

Get specific profile

Arguments:

key: (String)


35
36
37
38
# File 'lib/upwork/api/routers/freelancers/profile.rb', line 35

def get_specific(key)
  $LOG.i "running " + __method__.to_s
  raise StandardError.new "The legacy API was deprecated. Please, use GraphQL call - see example in this library."
end

#get_specific_brief(key) ⇒ Object

Get brief info on specific profile

Arguments:

key: (String)


44
45
46
47
# File 'lib/upwork/api/routers/freelancers/profile.rb', line 44

def get_specific_brief(key)
  raise StandardError.new "The legacy API was deprecated. Please, use GraphQL call - see example in this library."
  @client.get '/profiles/v1/providers/' + key + '/brief'
end