mailing_client 0.0.1 → 0.0.2
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.
@@ -3,7 +3,7 @@ module Mailing
|
|
3
3
|
class ScheduledMail < LogicalModel
|
4
4
|
include MailingClient::ServiceConfiguration
|
5
5
|
|
6
|
-
set_resource_path '/scheduled_mails'
|
6
|
+
set_resource_path '/api/v0/scheduled_mails'
|
7
7
|
|
8
8
|
attribute :recipient_email # The person who is receiving the email
|
9
9
|
attribute :send_at # When the email has been sent or will be sent
|
@@ -11,6 +11,10 @@ module Mailing
|
|
11
11
|
attribute :contact_id # The padma-contact id
|
12
12
|
attribute :username # The username who sends the mail
|
13
13
|
attribute :template_name # The template name
|
14
|
+
|
15
|
+
self.use_api_key = true
|
16
|
+
self.api_key_name = "app_key"
|
17
|
+
self.api_key = Mailing::API_KEY
|
14
18
|
|
15
19
|
end
|
16
20
|
end
|
@@ -2,9 +2,9 @@ module MailingClient
|
|
2
2
|
module ServiceConfiguration
|
3
3
|
def self.included(base)
|
4
4
|
base.send('use_hydra', Mailing::HYDRA)
|
5
|
-
base.send('force_ssl')
|
5
|
+
#base.send('force_ssl')
|
6
6
|
base.send('set_resource_host', Mailing::HOST)
|
7
|
-
base.send('configure_index_response', {collection: '
|
7
|
+
base.send('configure_index_response', {collection: 'collection', total: 'total'})
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailing_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|