lib/upwork/api/routers/hr/engagements.rb in ruby-upwork-oauth2-2.2.0 vs lib/upwork/api/routers/hr/engagements.rb in ruby-upwork-oauth2-2.3.0
- old
+ new
@@ -32,21 +32,21 @@
#
# Arguments:
# params: (Hash)
def get_list(params)
$LOG.i "running " + __method__.to_s
- @client.get '/hr/v2/engagements', params
+ raise StandardError.new "The legacy API was deprecated. Please, use GraphQL call - see example in this library."
end
# Get specific engagement
#
# Arguments:
# reference: (String)
def get_specific(reference)
$LOG.i "running " + __method__.to_s
- @client.get '/hr/v2/engagements/' + reference
+ raise StandardError.new "The legacy API was deprecated. Please, use GraphQL call - see example in this library."
end
end
end
end
end
-end
\ No newline at end of file
+end