mandrill-api 1.0.48 → 1.0.49

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mandrill/api.rb +30 -2
  2. metadata +4 -4
@@ -781,6 +781,7 @@ module Mandrill
781
781
  # - [Hash] to[] a single recipient's information.
782
782
  # - [String] email the email address of the recipient
783
783
  # - [String] name the optional display name to use for the recipient
784
+ # - [String] type the header type to use for the recipient, defaults to "to" if not provided
784
785
  # - [Hash] headers optional extra headers to add to the message (most headers are allowed)
785
786
  # - [Boolean] important whether or not this message is important, and should be delivered ahead of non-important messages
786
787
  # - [Boolean] track_opens whether or not to turn on open tracking for the message
@@ -857,6 +858,7 @@ module Mandrill
857
858
  # - [Hash] to[] a single recipient's information.
858
859
  # - [String] email the email address of the recipient
859
860
  # - [String] name the optional display name to use for the recipient
861
+ # - [String] type the header type to use for the recipient, defaults to "to" if not provided
860
862
  # - [Hash] headers optional extra headers to add to the message (most headers are allowed)
861
863
  # - [Boolean] important whether or not this message is important, and should be delivered ahead of non-important messages
862
864
  # - [Boolean] track_opens whether or not to turn on open tracking for the message
@@ -931,7 +933,7 @@ module Mandrill
931
933
  # - [String] _id the message's unique id
932
934
  # - [String] sender the email address of the sender
933
935
  # - [String] template the unique name of the template used, if any
934
- # - [String] subject the message's subject link
936
+ # - [String] subject the message's subject line
935
937
  # - [String] email the recipient email address
936
938
  # - [Array] tags list of tags on this message
937
939
  # - [String] tags[] individual tag on this message
@@ -993,7 +995,7 @@ module Mandrill
993
995
  # - [String] _id the message's unique id
994
996
  # - [String] sender the email address of the sender
995
997
  # - [String] template the unique name of the template used, if any
996
- # - [String] subject the message's subject link
998
+ # - [String] subject the message's subject line
997
999
  # - [String] email the recipient email address
998
1000
  # - [Array] tags list of tags on this message
999
1001
  # - [String] tags[] individual tag on this message
@@ -1024,6 +1026,32 @@ module Mandrill
1024
1026
  return @master.call 'messages/info', _params
1025
1027
  end
1026
1028
 
1029
+ # Get the full content of a recently sent message
1030
+ # @param [String] id the unique id of the message to get - passed as the "_id" field in webhooks, send calls, or search calls
1031
+ # @return [Hash] the content of the message
1032
+ # - [Integer] ts the Unix timestamp from when this message was sent
1033
+ # - [String] _id the message's unique id
1034
+ # - [String] from_email the email address of the sender
1035
+ # - [String] from_name the alias of the sender (if any)
1036
+ # - [String] subject the message's subject line
1037
+ # - [Hash] to the message recipient's information
1038
+ # - [String] email the email address of the recipient
1039
+ # - [String] name the alias of the recipient (if any)
1040
+ # - [Array] tags list of tags on this message
1041
+ # - [String] tags[] individual tag on this message
1042
+ # - [Hash] headers the key-value pairs of the custom MIME headers for the message's main document
1043
+ # - [String] text the text part of the message, if any
1044
+ # - [String] html the HTML part of the message, if any
1045
+ # - [Array] attachments an array of any attachments that can be found in the message
1046
+ # - [Hash] attachments[] information about an individual attachment
1047
+ # - [String] name the file name of the attachment
1048
+ # - [String] type the MIME type of the attachment
1049
+ # - [String] content the content of the attachment as a base64 encoded string
1050
+ def content(id)
1051
+ _params = {:id => id}
1052
+ return @master.call 'messages/content', _params
1053
+ end
1054
+
1027
1055
  # Parse the full MIME document for an email message, returning the content of the message broken into its constituent pieces
1028
1056
  # @param [String] raw_message the full MIME document of an email message
1029
1057
  # @return [Hash] the parsed message
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: 119
4
+ hash: 117
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 48
10
- version: 1.0.48
9
+ - 49
10
+ version: 1.0.49
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-10-11 00:00:00 Z
18
+ date: 2013-10-17 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json