Sha256: 617b9c59e7511a075014e5dafece07d01524e2fb1b7e1c45465dfc44cf98f9c3
Contents?: true
Size: 1.59 KB
Versions: 2
Compression:
Stored size: 1.59 KB
Contents
module Lenddo class NetworkService def mobile_data(partnerscript_id) signed_request( method: "GET", host: Lenddo.configuration.network_service, path: "/MobileData", params: { partner_script_id: partnerscript_id } ) end def extra_application_data(application_id, partnerscript_id, extra_data) 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 ) end def partner_token(application_id, provider, token_data, oauth_key, oauth_secret) 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 ) end def commit_partner_job(partnerscript_id, application_id, profile_ids, verification) 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 ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lenddo-2.1.0 | lib/lenddo/network_service/self.rb |
lenddo-2.0.0 | lib/lenddo/network_service/self.rb |