mandrill-api 1.0.36 → 1.0.37

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 +34 -0
  2. metadata +3 -3
@@ -825,6 +825,7 @@ module Mandrill
825
825
  # - [Integer] ts the Unix timestamp from when this message was sent
826
826
  # - [String] _id the message's unique id
827
827
  # - [String] sender the email address of the sender
828
+ # - [String] template the unique name of the template used, if any
828
829
  # - [String] subject the message's subject link
829
830
  # - [String] email the recipient email address
830
831
  # - [Array] tags list of tags on this message
@@ -851,6 +852,39 @@ module Mandrill
851
852
  return @master.call 'messages/search', _params
852
853
  end
853
854
 
855
+ # Get the information for a single recently sent message
856
+ # @param [String] id the unique id of the message to get - passed as the "_id" field in webhooks, send calls, or search calls
857
+ # @return [Hash] the information for the message
858
+ # - [Integer] ts the Unix timestamp from when this message was sent
859
+ # - [String] _id the message's unique id
860
+ # - [String] sender the email address of the sender
861
+ # - [String] template the unique name of the template used, if any
862
+ # - [String] subject the message's subject link
863
+ # - [String] email the recipient email address
864
+ # - [Array] tags list of tags on this message
865
+ # - [String] tags[] individual tag on this message
866
+ # - [Integer] opens how many times has this message been opened
867
+ # - [Array] opens_detail list of individual opens for the message
868
+ # - [Hash] opens_detail[] information on an individual open
869
+ # - [Integer] ts the unix timestamp from when the message was opened
870
+ # - [String] ip the IP address that generated the open
871
+ # - [String] location the approximate region and country that the opening IP is located
872
+ # - [String] ua the email client or browser data of the open
873
+ # - [Integer] clicks how many times has a link been clicked in this message
874
+ # - [Array] clicks_detail list of individual clicks for the message
875
+ # - [Hash] clicks_detail[] information on an individual click
876
+ # - [Integer] ts the unix timestamp from when the message was clicked
877
+ # - [String] url the URL that was clicked on
878
+ # - [String] ip the IP address that generated the click
879
+ # - [String] location the approximate region and country that the clicking IP is located
880
+ # - [String] ua the email client or browser data of the click
881
+ # - [String] state sending status of this message: sent, bounced, rejected
882
+ # - [Hash] metadata any custom metadata provided when the message was sent
883
+ def info(id)
884
+ _params = {:id => id}
885
+ return @master.call 'messages/info', _params
886
+ end
887
+
854
888
  # Parse the full MIME document for an email message, returning the content of the message broken into its constituent pieces
855
889
  # @param [String] raw_message the full MIME document of an email message
856
890
  # @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: 95
4
+ hash: 93
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 36
10
- version: 1.0.36
9
+ - 37
10
+ version: 1.0.37
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mandrill Devs