eloqua_api 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/lib/eloqua_api/client.rb +3 -0
- data/lib/eloqua_api/rest/contact.rb +8 -0
- data/lib/eloqua_api/rest/email.rb +4 -0
- metadata +4 -13
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YzJmNzgwOTEwNjU3OGQ2OGQzZGZlMWVkYWQ0OTUwNjM3ZGM0NjBmOA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NmFhMDllZWQ5YjBmNGM4ZTMwZGZiNzUxMTk3MGZiYjE3ODhiNjc5OA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YThmZGE2MTk2Mzc3MmI5Y2E2NDExMmE3MmZmMzE2NGVmYzdjYmUwZDI5YTE5
|
10
|
+
MzFkZmUzOTY2YzlhMGY3ODBmZmUxYzBhNWQ4OGQxYzdkYmFmOTFmZGRkYzdh
|
11
|
+
MTk1NzAyOTZmOWVmMmNmZmZmNzllYTBhNTZmMWNlMDlmODE5MDg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OWU1ZTFiMWEwYmZiODU5NDgxNjdlODBmMWMxMTVjZGEwMTQyZWY3MWIwZTg1
|
14
|
+
NDA4Mzg3Y2RiMTQwYTlkMGVjYTY1Mzg0NGE0ZjQwMjlmZjUyNGU1NmY0NzVl
|
15
|
+
ZTE4NmRhOWY0MDczNWZmNDI3ZDA4YmJlZDg4Y2RhN2NjNWRlZDQ=
|
data/lib/eloqua_api/client.rb
CHANGED
@@ -28,6 +28,7 @@ module Eloqua
|
|
28
28
|
qs
|
29
29
|
}
|
30
30
|
|
31
|
+
ssl_version :SSLv3
|
31
32
|
format :json
|
32
33
|
# debug_output $stdout
|
33
34
|
end
|
@@ -223,9 +224,11 @@ module Eloqua
|
|
223
224
|
nil
|
224
225
|
end
|
225
226
|
end
|
227
|
+
timeout ||= @opts[:timeout]
|
226
228
|
|
227
229
|
Class.new(HTTPClient) do |klass|
|
228
230
|
klass.base_uri(url.to_s) if url
|
231
|
+
klass.default_timeout(timeout) if timeout
|
229
232
|
|
230
233
|
if auth.is_a?(String) and auth.size > 0
|
231
234
|
klass.headers("Authorization" => "Bearer %s" % auth)
|
@@ -1,5 +1,13 @@
|
|
1
1
|
module Eloqua
|
2
2
|
module Contact
|
3
|
+
def find_contact_by_email(email, options={})
|
4
|
+
options[:depth] ||= "minimal"
|
5
|
+
options[:count] ||= 1
|
6
|
+
options[:search] = email
|
7
|
+
|
8
|
+
get("data/contacts", options)
|
9
|
+
end
|
10
|
+
|
3
11
|
def get_contact(contact_id, options={})
|
4
12
|
options[:depth] ||= "minimal"
|
5
13
|
|
@@ -16,6 +16,10 @@ module Eloqua
|
|
16
16
|
get("assets/email/%s/preview" % id, options)
|
17
17
|
end
|
18
18
|
|
19
|
+
def create_deployment(options={})
|
20
|
+
post("assets/email/deployment", options)
|
21
|
+
end
|
22
|
+
|
19
23
|
def get_recent_emails(options={})
|
20
24
|
options[:count] ||= 10
|
21
25
|
options[:depth] ||= "minimal"
|
metadata
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eloqua_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.9
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Nader Akhnoukh
|
9
|
-
- Mihail Szabolcs
|
10
8
|
autorequire:
|
11
9
|
bindir: bin
|
12
10
|
cert_chain: []
|
@@ -15,7 +13,6 @@ dependencies:
|
|
15
13
|
- !ruby/object:Gem::Dependency
|
16
14
|
name: json
|
17
15
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
16
|
requirements:
|
20
17
|
- - ! '>='
|
21
18
|
- !ruby/object:Gem::Version
|
@@ -23,7 +20,6 @@ dependencies:
|
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
23
|
requirements:
|
28
24
|
- - ! '>='
|
29
25
|
- !ruby/object:Gem::Version
|
@@ -31,7 +27,6 @@ dependencies:
|
|
31
27
|
- !ruby/object:Gem::Dependency
|
32
28
|
name: httparty
|
33
29
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
30
|
requirements:
|
36
31
|
- - ! '>='
|
37
32
|
- !ruby/object:Gem::Version
|
@@ -39,7 +34,6 @@ dependencies:
|
|
39
34
|
type: :runtime
|
40
35
|
prerelease: false
|
41
36
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
37
|
requirements:
|
44
38
|
- - ! '>='
|
45
39
|
- !ruby/object:Gem::Version
|
@@ -47,7 +41,6 @@ dependencies:
|
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: httmultiparty
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
44
|
requirements:
|
52
45
|
- - ! '>='
|
53
46
|
- !ruby/object:Gem::Version
|
@@ -55,7 +48,6 @@ dependencies:
|
|
55
48
|
type: :runtime
|
56
49
|
prerelease: false
|
57
50
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
51
|
requirements:
|
60
52
|
- - ! '>='
|
61
53
|
- !ruby/object:Gem::Version
|
@@ -83,26 +75,25 @@ files:
|
|
83
75
|
homepage: http://github.com/kapost/eloqua_api
|
84
76
|
licenses:
|
85
77
|
- MIT
|
78
|
+
metadata: {}
|
86
79
|
post_install_message:
|
87
80
|
rdoc_options: []
|
88
81
|
require_paths:
|
89
82
|
- lib
|
90
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
84
|
requirements:
|
93
85
|
- - ! '>='
|
94
86
|
- !ruby/object:Gem::Version
|
95
87
|
version: '0'
|
96
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
89
|
requirements:
|
99
90
|
- - ! '>='
|
100
91
|
- !ruby/object:Gem::Version
|
101
92
|
version: '0'
|
102
93
|
requirements: []
|
103
94
|
rubyforge_project:
|
104
|
-
rubygems_version: 1.
|
95
|
+
rubygems_version: 2.1.10
|
105
96
|
signing_key:
|
106
|
-
specification_version:
|
97
|
+
specification_version: 4
|
107
98
|
summary: Ruby Eloqua API Wrapper
|
108
99
|
test_files: []
|