marketo 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,8 +46,7 @@ module Rapleaf
46
46
  # * last - surname/last name of lead
47
47
  # * company - company the lead is associated with
48
48
  # * mobile - mobile/cell phone number
49
- # * api_key - rapleaf API key
50
- def sync_lead(email, first, last, company, mobile, api_key)
49
+ def sync_lead(email, first, last, company, mobile)
51
50
  begin
52
51
  response = send_request("ns1:paramsSyncLead", {
53
52
  :return_lead => true,
@@ -59,8 +58,7 @@ module Rapleaf
59
58
  {:attr_name => 'LastName', :attr_type => 'string', :attr_value => last},
60
59
  {:attr_name => 'Email', :attr_type => 'string', :attr_value => email},
61
60
  {:attr_name => 'Company', :attr_type => 'string', :attr_value => company},
62
- {:attr_name => 'MobilePhone', :attr_type => 'string', :attr_value => mobile},
63
- {:attr_name => 'API_Key__c', :attr_type => 'string', :attr_value => api_key}
61
+ {:attr_name => 'MobilePhone', :attr_type => 'string', :attr_value => mobile}
64
62
  ]}}})
65
63
  return response
66
64
  rescue Exception => e
@@ -26,7 +26,7 @@ module Rapleaf
26
26
  authentication_header = mock('authentication_header').as_null_object
27
27
  client = Rapleaf::Marketo::Client.new(savon_client, authentication_header)
28
28
  savon_client.should_receive(:request).and_raise Exception
29
- client.sync_lead(EMAIL, FIRST, LAST, COMPANY, MOBILE, API_KEY).should be_nil
29
+ client.sync_lead(EMAIL, FIRST, LAST, COMPANY, MOBILE).should be_nil
30
30
  end
31
31
  end
32
32
 
@@ -143,14 +143,11 @@ module Rapleaf
143
143
  :attr_type =>"string"},
144
144
  {:attr_value =>"415 123 456",
145
145
  :attr_name =>"MobilePhone",
146
- :attr_type =>"string"},
147
- {:attr_value =>"API123KEY",
148
- :attr_name =>"API_Key__c",
149
146
  :attr_type =>"string"}
150
147
  ]}}},
151
148
  'ns1:paramsSyncLead',
152
149
  response_hash)
153
- client.sync_lead(EMAIL, FIRST, LAST, COMPANY, MOBILE, API_KEY).should == response_hash
150
+ client.sync_lead(EMAIL, FIRST, LAST, COMPANY, MOBILE).should == response_hash
154
151
  end
155
152
 
156
153
  context "list operations" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marketo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - James O'Brien
@@ -28,8 +28,10 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  hash: 3
30
30
  segments:
31
+ - 2
32
+ - 3
31
33
  - 0
32
- version: "0"
34
+ version: 2.3.0
33
35
  type: :development
34
36
  version_requirements: *id001
35
37
  - !ruby/object:Gem::Dependency
@@ -40,10 +42,12 @@ dependencies:
40
42
  requirements:
41
43
  - - ">="
42
44
  - !ruby/object:Gem::Version
43
- hash: 3
45
+ hash: 57
44
46
  segments:
45
47
  - 0
46
- version: "0"
48
+ - 8
49
+ - 3
50
+ version: 0.8.3
47
51
  type: :runtime
48
52
  version_requirements: *id002
49
53
  description: Allows easy integration with marketo from ruby. You can synchronize leads and fetch them back by email.
@@ -67,8 +71,8 @@ files:
67
71
  - spec/marketo/lead_record_spec.rb
68
72
  has_rdoc: true
69
73
  homepage: http://www.rapleaf.com
70
- licenses:
71
- - - Rapleaf internal - do not use without permission
74
+ licenses: []
75
+
72
76
  post_install_message:
73
77
  rdoc_options:
74
78
  - --title
@@ -101,7 +105,7 @@ rubyforge_project:
101
105
  rubygems_version: 1.3.7
102
106
  signing_key:
103
107
  specification_version: 3
104
- summary: A client for using the marketo API within Rapleaf
108
+ summary: A client for using the marketo API
105
109
  test_files:
106
110
  - spec/marketo/authentication_header_spec.rb
107
111
  - spec/marketo/client_spec.rb