mandrill-api 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mandrill/api.rb +19 -2
- metadata +4 -4
data/lib/mandrill/api.rb
CHANGED
@@ -459,6 +459,7 @@ module Mandrill
|
|
459
459
|
# - [Integer] soft_bounces the number of emails that soft bounced during the hour
|
460
460
|
# - [Integer] rejects the number of emails that were rejected during the hour
|
461
461
|
# - [Integer] complaints the number of spam complaints received during the hour
|
462
|
+
# - [Integer] unsubs the number of unsubscribes received during the hour
|
462
463
|
# - [Integer] opens the number of emails opened during the hour
|
463
464
|
# - [Integer] unique_opens the number of unique opens generated by messages sent during the hour
|
464
465
|
# - [Integer] clicks the number of tracked URLs clicked during the hour
|
@@ -477,6 +478,7 @@ module Mandrill
|
|
477
478
|
# - [Integer] soft_bounces the number of emails that soft bounced during the hour
|
478
479
|
# - [Integer] rejects the number of emails that were rejected during the hour
|
479
480
|
# - [Integer] complaints the number of spam complaints received during the hour
|
481
|
+
# - [Integer] unsubs the number of unsubscribes received during the hour
|
480
482
|
# - [Integer] opens the number of emails opened during the hour
|
481
483
|
# - [Integer] unique_opens the number of unique opens generated by messages sent during the hour
|
482
484
|
# - [Integer] clicks the number of tracked URLs clicked during the hour
|
@@ -535,9 +537,14 @@ module Mandrill
|
|
535
537
|
# - [Array] values an associated array containing the recipient's unique metadata. If a key exists in both the per-recipient metadata and the global metadata, the per-recipient metadata will be used.
|
536
538
|
# - [Array] attachments an array of supported attachments to add to the message
|
537
539
|
# - [Hash] attachments[] a single supported attachment
|
538
|
-
# - [String] type the MIME type of the attachment
|
540
|
+
# - [String] type the MIME type of the attachment
|
539
541
|
# - [String] name the file name of the attachment
|
540
542
|
# - [String] content the content of the attachment as a base64-encoded string
|
543
|
+
# - [Array] images an array of embedded images to add to the message
|
544
|
+
# - [Hash] images[] a single embedded image
|
545
|
+
# - [String] type the MIME type of the image - must start with "image/"
|
546
|
+
# - [String] name the Content ID of the image - use <img src="cid:THIS_VALUE"> to reference the image in your HTML content
|
547
|
+
# - [String] content the content of the image as a base64-encoded string
|
541
548
|
# @param [Boolean] async enable a background sending mode that is optimized for bulk sending. In async mode, messages/send 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.
|
542
549
|
# @return [Array] of structs for each recipient containing the key "email" with the email address and "status" as either "sent", "queued", or "rejected"
|
543
550
|
# - [Hash] return[] the sending results for a single recipient
|
@@ -592,9 +599,14 @@ module Mandrill
|
|
592
599
|
# - [Array] values an associated array containing the recipient's unique metadata. If a key exists in both the per-recipient metadata and the global metadata, the per-recipient metadata will be used.
|
593
600
|
# - [Array] attachments an array of supported attachments to add to the message
|
594
601
|
# - [Hash] attachments[] a single supported attachment
|
595
|
-
# - [String] type the MIME type of the attachment
|
602
|
+
# - [String] type the MIME type of the attachment
|
596
603
|
# - [String] name the file name of the attachment
|
597
604
|
# - [String] content the content of the attachment as a base64-encoded string
|
605
|
+
# - [Array] images an array of embedded images to add to the message
|
606
|
+
# - [Hash] images[] a single embedded image
|
607
|
+
# - [String] type the MIME type of the image - must start with "image/"
|
608
|
+
# - [String] name the Content ID of the image - use <img src="cid:THIS_VALUE"> to reference the image in your HTML content
|
609
|
+
# - [String] content the content of the image as a base64-encoded string
|
598
610
|
# @param [Boolean] async enable a background sending mode that is optimized for bulk sending. In async mode, messages/sendTemplate 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.
|
599
611
|
# @return [Array] of structs for each recipient containing the key "email" with the email address and "status" as either "sent", "queued", or "rejected"
|
600
612
|
# - [Hash] return[] the sending results for a single recipient
|
@@ -649,6 +661,11 @@ module Mandrill
|
|
649
661
|
# - [String] type the MIME type of the attachment
|
650
662
|
# - [Boolean] binary if this is set to true, the attachment is not pure-text, and the content will be base64 encoded
|
651
663
|
# - [String] content the content of the attachment as a text string or a base64 encoded string based on the attachment type
|
664
|
+
# - [Array] images an array of any embedded images that can be found in the message
|
665
|
+
# - [Hash] images[] information about an individual image
|
666
|
+
# - [String] name the Content-ID of the embedded image
|
667
|
+
# - [String] type the MIME type of the image
|
668
|
+
# - [String] content the content of the image as a base64 encoded string
|
652
669
|
def parse(raw_message)
|
653
670
|
_params = {:raw_message => raw_message}
|
654
671
|
return @master.call 'messages/parse', _params
|
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: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 14
|
10
|
+
version: 1.0.14
|
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-
|
18
|
+
date: 2013-02-04 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: json
|