Sha256: 8283cd026804c7d0773f886c832fbc622a3785c9c3d7a0e886e6b85c84f76a87
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
module Lenddo module WhiteLabelClient class NetworkService def extra_application_data(application_id, partnerscript_id, extra_data) response = signed_request( method: "POST", host: Lenddo.configuration.network_service, path: "/ExtraApplicationData", params: { application_id: application_id, partner_script_id: partnerscript_id, extra_data: extra_data }.to_json ) JSON.parse(response.body) end def partner_token(application_id, provider, token_data, oauth_key, oauth_secret) response = signed_request( method: "POST", host: Lenddo.configuration.network_service, path: "/PartnerToken", params: { token_data: { key: oauth_key, secret: oauth_secret }.merge!(token_data), provider: provider, client_id: application_id }.to_json ) JSON.parse(response.body) end def commit_partner_job(partnerscript_id, application_id, profile_ids, verification) response = signed_request( method: "POST", host: Lenddo.configuration.network_service, path: "/CommitPartnerJob", params: { client_id: application_id, profile_ids: profile_ids, partner_script_id: partnerscript_id, verification_data: verification }.to_json ) JSON.parse(response.body) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lenddo-1.1.3 | lib/lenddo/white_label_client/network_service.rb |
lenddo-1.1.2 | lib/lenddo/white_label_client/network_service.rb |