mandrill-api 1.0.37 → 1.0.38
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mandrill/api.rb +29 -3
- metadata +4 -4
data/lib/mandrill/api.rb
CHANGED
@@ -518,6 +518,7 @@ module Mandrill
|
|
518
518
|
# @return [Array] a list of user-defined tags
|
519
519
|
# - [Hash] return[] a user-defined tag
|
520
520
|
# - [String] tag the actual tag as a string
|
521
|
+
# - [Integer] reputation the tag's current reputation on a scale from 0 to 100.
|
521
522
|
# - [Integer] sent the total number of messages sent with this tag
|
522
523
|
# - [Integer] hard_bounces the total number of hard bounces by messages with this tag
|
523
524
|
# - [Integer] soft_bounces the total number of soft bounces by messages with this tag
|
@@ -537,6 +538,7 @@ module Mandrill
|
|
537
538
|
# @param [String] tag a tag name
|
538
539
|
# @return [Hash] the tag that was deleted
|
539
540
|
# - [String] tag the actual tag as a string
|
541
|
+
# - [Integer] reputation the tag's current reputation on a scale from 0 to 100.
|
540
542
|
# - [Integer] sent the total number of messages sent with this tag
|
541
543
|
# - [Integer] hard_bounces the total number of hard bounces by messages with this tag
|
542
544
|
# - [Integer] soft_bounces the total number of soft bounces by messages with this tag
|
@@ -683,7 +685,7 @@ module Mandrill
|
|
683
685
|
# - [Hash] to[] a single recipient's information.
|
684
686
|
# - [String] email the email address of the recipient
|
685
687
|
# - [String] name the optional display name to use for the recipient
|
686
|
-
# - [Hash] headers optional extra headers to add to the message (
|
688
|
+
# - [Hash] headers optional extra headers to add to the message (most headers are allowed)
|
687
689
|
# - [Boolean] important whether or not this message is important, and should be delivered ahead of non-important messages
|
688
690
|
# - [Boolean] track_opens whether or not to turn on open tracking for the message
|
689
691
|
# - [Boolean] track_clicks whether or not to turn on click tracking for the message
|
@@ -756,7 +758,7 @@ module Mandrill
|
|
756
758
|
# - [Hash] to[] a single recipient's information.
|
757
759
|
# - [String] email the email address of the recipient
|
758
760
|
# - [String] name the optional display name to use for the recipient
|
759
|
-
# - [Hash] headers optional extra headers to add to the message (
|
761
|
+
# - [Hash] headers optional extra headers to add to the message (most headers are allowed)
|
760
762
|
# - [Boolean] important whether or not this message is important, and should be delivered ahead of non-important messages
|
761
763
|
# - [Boolean] track_opens whether or not to turn on open tracking for the message
|
762
764
|
# - [Boolean] track_clicks whether or not to turn on click tracking for the message
|
@@ -852,6 +854,30 @@ module Mandrill
|
|
852
854
|
return @master.call 'messages/search', _params
|
853
855
|
end
|
854
856
|
|
857
|
+
# Search the content of recently sent messages and return the aggregated hourly stats for matching messages
|
858
|
+
# @param [String] query the search terms to find matching messages for
|
859
|
+
# @param [String] date_from start date
|
860
|
+
# @param [String] date_to end date
|
861
|
+
# @param [Array] tags an array of tag names to narrow the search to, will return messages that contain ANY of the tags
|
862
|
+
# @param [Array] senders an array of sender addresses to narrow the search to, will return messages sent by ANY of the senders
|
863
|
+
# @return [Array] the array of history information
|
864
|
+
# - [Hash] return[] the stats for a single hour
|
865
|
+
# - [String] time the hour as a UTC date string in YYYY-MM-DD HH:MM:SS format
|
866
|
+
# - [Integer] sent the number of emails that were sent during the hour
|
867
|
+
# - [Integer] hard_bounces the number of emails that hard bounced during the hour
|
868
|
+
# - [Integer] soft_bounces the number of emails that soft bounced during the hour
|
869
|
+
# - [Integer] rejects the number of emails that were rejected during the hour
|
870
|
+
# - [Integer] complaints the number of spam complaints received during the hour
|
871
|
+
# - [Integer] unsubs the number of unsubscribes received during the hour
|
872
|
+
# - [Integer] opens the number of emails opened during the hour
|
873
|
+
# - [Integer] unique_opens the number of unique opens generated by messages sent during the hour
|
874
|
+
# - [Integer] clicks the number of tracked URLs clicked during the hour
|
875
|
+
# - [Integer] unique_clicks the number of unique clicks generated by messages sent during the hour
|
876
|
+
def search_time_series(query='*', date_from=nil, date_to=nil, tags=nil, senders=nil)
|
877
|
+
_params = {:query => query, :date_from => date_from, :date_to => date_to, :tags => tags, :senders => senders}
|
878
|
+
return @master.call 'messages/search-time-series', _params
|
879
|
+
end
|
880
|
+
|
855
881
|
# Get the information for a single recently sent message
|
856
882
|
# @param [String] id the unique id of the message to get - passed as the "_id" field in webhooks, send calls, or search calls
|
857
883
|
# @return [Hash] the information for the message
|
@@ -919,7 +945,7 @@ module Mandrill
|
|
919
945
|
# @param [String, nil] from_email optionally define the sender address - otherwise we'll use the address found in the provided headers
|
920
946
|
# @param [String, nil] from_name optionally define the sender alias
|
921
947
|
# @param [Array, nil] to optionally define the recipients to receive the message - otherwise we'll use the To, Cc, and Bcc headers provided in the document
|
922
|
-
# - [String] to[] the email address of the
|
948
|
+
# - [String] to[] the email address of the recipient
|
923
949
|
# @param [Boolean] async enable a background sending mode that is optimized for bulk sending. In async mode, messages/sendRaw will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async.
|
924
950
|
# @param [String] ip_pool the name of the dedicated ip pool that should be used to send the message. If you do not have any dedicated IPs, this parameter has no effect. If you specify a pool that does not exist, your default pool will be used instead.
|
925
951
|
# @param [String] send_at when this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format. If you specify a time in the past, the message will be sent immediately.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mandrill-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 91
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 38
|
10
|
+
version: 1.0.38
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mandrill Devs
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-07-
|
18
|
+
date: 2013-07-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: json
|