mandrill-api 1.0.21 → 1.0.22

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.
Files changed (2) hide show
  1. data/lib/mandrill/api.rb +11 -4
  2. metadata +3 -3
data/lib/mandrill/api.rb CHANGED
@@ -782,6 +782,7 @@ module Mandrill
782
782
  # - [Hash] return[] the inidividual webhook info
783
783
  # - [Integer] id a unique integer indentifier for the webhook
784
784
  # - [String] url The URL that the event data will be posted to
785
+ # - [String] description a description of the webhook
785
786
  # - [Array] events The message events that will be posted to the hook
786
787
  # - [String] events[] the individual message event (send, hard_bounce, soft_bounce, open, click, spam, unsub, or reject)
787
788
  # - [String] created_at the date and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format
@@ -796,11 +797,13 @@ module Mandrill
796
797
 
797
798
  # Add a new webhook
798
799
  # @param [String] url the URL to POST batches of events
800
+ # @param [String] description an optional description of the webhook
799
801
  # @param [Array] events an optional list of events that will be posted to the webhook
800
802
  # - [String] events[] the individual event to listen for
801
803
  # @return [Hash] the information saved about the new webhook
802
804
  # - [Integer] id a unique integer indentifier for the webhook
803
805
  # - [String] url The URL that the event data will be posted to
806
+ # - [String] description a description of the webhook
804
807
  # - [Array] events The message events that will be posted to the hook
805
808
  # - [String] events[] the individual message event (send, hard_bounce, soft_bounce, open, click, spam, unsub, or reject)
806
809
  # - [String] created_at the date and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format
@@ -808,8 +811,8 @@ module Mandrill
808
811
  # - [Integer] batches_sent the number of event batches that have ever been sent to this webhook
809
812
  # - [Integer] events_sent the total number of events that have ever been sent to this webhook
810
813
  # - [String] last_error if we've ever gotten an error trying to post to this webhook, the last error that we've seen
811
- def add(url, events=[])
812
- _params = {:url => url, :events => events}
814
+ def add(url, description=nil, events=[])
815
+ _params = {:url => url, :description => description, :events => events}
813
816
  return @master.call 'webhooks/add', _params
814
817
  end
815
818
 
@@ -818,6 +821,7 @@ module Mandrill
818
821
  # @return [Hash] the information about the webhook
819
822
  # - [Integer] id a unique integer indentifier for the webhook
820
823
  # - [String] url The URL that the event data will be posted to
824
+ # - [String] description a description of the webhook
821
825
  # - [Array] events The message events that will be posted to the hook
822
826
  # - [String] events[] the individual message event (send, hard_bounce, soft_bounce, open, click, spam, unsub, or reject)
823
827
  # - [String] created_at the date and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format
@@ -833,11 +837,13 @@ module Mandrill
833
837
  # Update an existing webhook
834
838
  # @param [Integer] id the unique identifier of a webhook belonging to this account
835
839
  # @param [String] url the URL to POST batches of events
840
+ # @param [String] description an optional description of the webhook
836
841
  # @param [Array] events an optional list of events that will be posted to the webhook
837
842
  # - [String] events[] the individual event to listen for
838
843
  # @return [Hash] the information for the updated webhook
839
844
  # - [Integer] id a unique integer indentifier for the webhook
840
845
  # - [String] url The URL that the event data will be posted to
846
+ # - [String] description a description of the webhook
841
847
  # - [Array] events The message events that will be posted to the hook
842
848
  # - [String] events[] the individual message event (send, hard_bounce, soft_bounce, open, click, spam, unsub, or reject)
843
849
  # - [String] created_at the date and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format
@@ -845,8 +851,8 @@ module Mandrill
845
851
  # - [Integer] batches_sent the number of event batches that have ever been sent to this webhook
846
852
  # - [Integer] events_sent the total number of events that have ever been sent to this webhook
847
853
  # - [String] last_error if we've ever gotten an error trying to post to this webhook, the last error that we've seen
848
- def update(id, url, events=[])
849
- _params = {:id => id, :url => url, :events => events}
854
+ def update(id, url, description=nil, events=[])
855
+ _params = {:id => id, :url => url, :description => description, :events => events}
850
856
  return @master.call 'webhooks/update', _params
851
857
  end
852
858
 
@@ -855,6 +861,7 @@ module Mandrill
855
861
  # @return [Hash] the information for the deleted webhook
856
862
  # - [Integer] id a unique integer indentifier for the webhook
857
863
  # - [String] url The URL that the event data will be posted to
864
+ # - [String] description a description of the webhook
858
865
  # - [Array] events The message events that will be posted to the hook
859
866
  # - [String] events[] the individual message event (send, hard_bounce, soft_bounce, open, click, spam, unsub, or reject)
860
867
  # - [String] created_at the date and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format
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: 61
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 21
10
- version: 1.0.21
9
+ - 22
10
+ version: 1.0.22
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mandrill Devs