sift_email_api 1.0.0 → 1.0.1

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sift_email_api.rb +6 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69ef784ab8e62153a07c33cac5eda53889999787
4
- data.tar.gz: 4b8f509c4224226f7283a4d5edd02fcd6ab16262
3
+ metadata.gz: eda74a4d7338d52d003426dee77be9599a8771b3
4
+ data.tar.gz: 5c2ac7fd7e3d87214b413fd4824bdb494f0e6421
5
5
  SHA512:
6
- metadata.gz: feb3e9a77bfe773bcff8ff687eae3bc2683e46472237369b68c87d42da9743efd75ff2dca73b7aa18eba0d754f30ed18f9169f08ab668c7ea47272d3b3355c25
7
- data.tar.gz: 1273909567f96b406e7b692b71564a4b6560183c561646dd7ada079d366e39349730540ed2ecc0cb654282b1437e473c9f40a8f5bf38b10b2210c31006cbb652
6
+ metadata.gz: 99cb84d7af08bdeb58e0c387b2a7e89cbad361615aa5c9c31616e2224bf381d139585dd3f52eb529721325f7173322fe9c9101063807e50fa54447d2c23a58bc
7
+ data.tar.gz: b9deaf343a6c4d6d6f5a6759a7dfae2e948ec3639ddd4341fd1c6fa55ed26b3e64e8929d5a9a4bf5d7dc061d33f88a68ad58488e1f0fe5b4c4738c57bfb695f4
@@ -29,8 +29,9 @@ class SiftEmailApi
29
29
  # @param last_update_time [Time] only return sifts updated since this date
30
30
  # @param offset [Integer] used for paging, where to start
31
31
  # @param limit [Integer] maximum number of results to return
32
+ # @param domains [Array] list of domain strings. If provided, only sifts in the specified domains will be returned
32
33
  # @return [Array] list of sifts in descending order of last update time, available fields documented here: {https://developer.easilydo.com/sift/documentation#flights}
33
- def list_sifts(username, last_update_time=nil, offset=nil, limit=nil)
34
+ def list_sifts(username, last_update_time=nil, offset=nil, limit=nil, domains=nil)
34
35
  path = '/v1/users/%s/sifts' % username
35
36
  params = {}
36
37
 
@@ -46,6 +47,10 @@ class SiftEmailApi
46
47
  params['limit'] = limit
47
48
  end
48
49
 
50
+ if domains and not domains.empty?
51
+ params['domains'] = domains.join(',')
52
+ end
53
+
49
54
  add_common_params('GET', path, params)
50
55
 
51
56
  uri = URI::HTTPS.build({:host => @@api_endpoint, :path => path, :query => URI.encode_www_form(params)})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sift_email_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Stritter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-28 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool