mandrill-api 1.0.45 → 1.0.46

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 +12 -6
  2. metadata +6 -5
@@ -413,17 +413,20 @@ module Mandrill
413
413
 
414
414
  # Adds an email to your email rejection blacklist. Addresses that you add manually will never expire and there is no reputation penalty for removing them from your blacklist. Attempting to blacklist an address that has been whitelisted will have no effect.
415
415
  # @param [String] email an email address to block
416
+ # @param [String] comment an optional comment describing the rejection
417
+ # @param [String] subaccount an optional unique identifier for the subaccount to limit the blacklist entry
416
418
  # @return [Hash] a status object containing the address and the result of the operation
417
419
  # - [String] email the email address you provided
418
420
  # - [Boolean] added whether the operation succeeded
419
- def add(email)
420
- _params = {:email => email}
421
+ def add(email, comment=nil, subaccount=nil)
422
+ _params = {:email => email, :comment => comment, :subaccount => subaccount}
421
423
  return @master.call 'rejects/add', _params
422
424
  end
423
425
 
424
426
  # Retrieves your email rejection blacklist. You can provide an email address to limit the results. Returns up to 1000 results. By default, entries that have expired are excluded from the results; set include_expired to true to include them.
425
427
  # @param [String] email an optional email address to search by
426
428
  # @param [Boolean] include_expired whether to include rejections that have already expired.
429
+ # @param [String] subaccount an optional unique identifier for the subaccount to limit the blacklist
427
430
  # @return [Array] Up to 1000 rejection entries
428
431
  # - [Hash] return[] the information for each rejection blacklist entry
429
432
  # - [String] email the email that is blocked
@@ -446,18 +449,21 @@ module Mandrill
446
449
  # - [Integer] clicks the total number of times tracked URLs in messages by this sender have been clicked
447
450
  # - [Integer] unique_opens the number of unique opens for emails sent for this sender
448
451
  # - [Integer] unique_clicks the number of unique clicks for emails sent for this sender
449
- def list(email=nil, include_expired=false)
450
- _params = {:email => email, :include_expired => include_expired}
452
+ # - [String] subaccount the subaccount that this blacklist entry applies to, or null if none.
453
+ def list(email=nil, include_expired=false, subaccount=nil)
454
+ _params = {:email => email, :include_expired => include_expired, :subaccount => subaccount}
451
455
  return @master.call 'rejects/list', _params
452
456
  end
453
457
 
454
458
  # Deletes an email rejection. There is no limit to how many rejections you can remove from your blacklist, but keep in mind that each deletion has an affect on your reputation.
455
459
  # @param [String] email an email address
460
+ # @param [String] subaccount an optional unique identifier for the subaccount to limit the blacklist deletion
456
461
  # @return [Hash] a status object containing the address and whether the deletion succeeded.
457
462
  # - [String] email the email address that was removed from the blacklist
458
463
  # - [Boolean] deleted whether the address was deleted successfully.
459
- def delete(email)
460
- _params = {:email => email}
464
+ # - [String] subaccount the subaccount blacklist that the address was removed from, if any
465
+ def delete(email, subaccount=nil)
466
+ _params = {:email => email, :subaccount => subaccount}
461
467
  return @master.call 'rejects/delete', _params
462
468
  end
463
469
 
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: 77
4
+ hash: 75
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 45
10
- version: 1.0.45
9
+ - 46
10
+ version: 1.0.46
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-09-06 00:00:00 Z
18
+ date: 2013-09-13 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json
@@ -104,9 +104,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements: []
105
105
 
106
106
  rubyforge_project:
107
- rubygems_version: 1.8.15
107
+ rubygems_version: 1.8.24
108
108
  signing_key:
109
109
  specification_version: 3
110
110
  summary: A Ruby API library for the Mandrill email as a service platform.
111
111
  test_files: []
112
112
 
113
+ has_rdoc: