messagebus-sdk 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -51,29 +51,28 @@ class MessagebusTemplateClient < MessagebusSDK::MessagebusBase
|
|
51
51
|
path = "#{@rest_endpoints[:templates]}"
|
52
52
|
make_api_request(path)
|
53
53
|
end
|
54
|
-
end
|
55
54
|
|
56
|
-
private
|
57
|
-
def define_rest_endpoints
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
end
|
55
|
+
private
|
56
|
+
def define_rest_endpoints
|
57
|
+
{
|
58
|
+
:template_version => "/api/v4/templates/version",
|
59
|
+
:template => "/api/v4/template/%TEMPLATE_KEY%",
|
60
|
+
:templates => "/api/v4/templates",
|
61
|
+
:templates_send => "/api/v4/templates/email/send"
|
62
|
+
}
|
63
|
+
end
|
65
64
|
|
66
|
-
def base_template_params
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
65
|
+
def base_template_params
|
66
|
+
{:toEmail => '',
|
67
|
+
:fromEmail => '',
|
68
|
+
:subject => '',
|
69
|
+
:toName => '',
|
70
|
+
:fromName => '',
|
71
|
+
:returnPath => '',
|
72
|
+
:plaintextBody => '',
|
73
|
+
:htmlBody => '',
|
74
|
+
:sessionKey => DEFAULT,
|
75
|
+
:options => {},
|
76
|
+
:customHeaders => {} }
|
77
|
+
end
|
78
78
|
end
|
79
|
-
|
data/spec/spec_helper.rb
CHANGED
@@ -248,7 +248,6 @@ class MessageBusActionMailerTest < ActionMailer::Base
|
|
248
248
|
|
249
249
|
def new_message(to_email, session_key, bcc = "", x_headers = {})
|
250
250
|
headers[MessagebusSDK::MessagebusBase::HEADER_SESSION_KEY] = session_key
|
251
|
-
|
252
251
|
x_headers.each do |key, value|
|
253
252
|
headers[key] = value
|
254
253
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: messagebus-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,9 +9,9 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description: SDK for Message Bus
|
14
|
+
description: SDK for Message Bus service
|
15
15
|
email:
|
16
16
|
- support@messagebus.com
|
17
17
|
executables: []
|