Class: Lenddo::NetworkService
- Inherits:
-
Object
- Object
- Lenddo::NetworkService
- Defined in:
- lib/lenddo/network_service/self.rb
Instance Method Summary collapse
- #commit_partner_job(partnerscript_id, application_id, profile_ids, verification) ⇒ Object
- #extra_application_data(application_id, partnerscript_id, extra_data) ⇒ Object
- #mobile_data(partnerscript_id) ⇒ Object
- #partner_token(application_id, provider, token_data, oauth_key, oauth_secret) ⇒ Object
Instance Method Details
#commit_partner_job(partnerscript_id, application_id, profile_ids, verification) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/lenddo/network_service/self.rb', line 43 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 |
#extra_application_data(application_id, partnerscript_id, extra_data) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/lenddo/network_service/self.rb', line 14 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 |
#mobile_data(partnerscript_id) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/lenddo/network_service/self.rb', line 3 def mobile_data(partnerscript_id) signed_request( method: "GET", host: Lenddo.configuration.network_service, path: "/MobileData", params: { partner_script_id: partnerscript_id } ) end |
#partner_token(application_id, provider, token_data, oauth_key, oauth_secret) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/lenddo/network_service/self.rb', line 27 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 |