Class: ONEAccess::API::V3_0::Providers
- Defined in:
- lib/oneaccess/api/v3_0/providers.rb
Class Method Summary collapse
Methods inherited from ApiBase
api_url, resource_api_path, send_get, send_post
Class Method Details
.inducements(recipient_user_id:, sender_email:, subject:, email_body:, receive_date:) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/oneaccess/api/v3_0/providers.rb', line 12 def inducements(recipient_user_id:, sender_email:, subject:, email_body:, receive_date:) params = { recipientuserid: recipient_user_id, senderemail: sender_email, subject: subject, emailbody: email_body, receivedate: receive_date }.reject { |_, v| v.nil? } resp = send_post("inducements", params) Response::InducementResponse.from_json(resp.body) end |