neverbounce-api 1.0.3 → 1.0.4
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.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -1
- data/lib/never_bounce/api/client.rb +1 -1
- data/lib/never_bounce/api/version.rb +1 -1
- metadata +2 -4
- data/spec/lib/never_bounce/api_spec.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da7750382da1d6b5deddf629b7a592ea48cc265f
|
4
|
+
data.tar.gz: e5172de975642ebf2fee9c766ebfa8186853299e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fed8ba58fab324a869a11571de730549469118e1af58894c708393c65a6b1ad502c05ed4ad1e75093adfe35853b470457a60aee0631c5ec92499ec9039f1f043
|
7
|
+
data.tar.gz: 5b389616e21e31f82a264fe0c9e7b5233f0a0f2feb6aadc6988dd1aefacccbd4f24fd624251c7b515ba490c88ebcae965df5d56a46d77f791e873a0fabd9fe1c
|
data/.travis.yml
CHANGED
@@ -5,6 +5,10 @@ env:
|
|
5
5
|
global:
|
6
6
|
- CC_TEST_REPORTER_ID=9300cb7898e254e78099399acbb2796471fde0e5c1873899273a583d56c9d740
|
7
7
|
|
8
|
+
before_install:
|
9
|
+
- gem update --system
|
10
|
+
- gem install bundler
|
11
|
+
|
8
12
|
install:
|
9
13
|
- bundle install --path ~/bundle
|
10
14
|
|
@@ -25,3 +29,4 @@ rvm:
|
|
25
29
|
- 2.2
|
26
30
|
- 2.3
|
27
31
|
- 2.4
|
32
|
+
- 2.5
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -48,7 +48,7 @@ To talk to the API, create a `Client` object and call one of its request methods
|
|
48
48
|
For example, let's get account info:
|
49
49
|
|
50
50
|
```ruby
|
51
|
-
client = NeverBounce::API::Client.new(api_key: "
|
51
|
+
client = NeverBounce::API::Client.new(api_key: "secret_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") # Insert YOUR key here.
|
52
52
|
resp = client.account_info
|
53
53
|
|
54
54
|
if resp.ok?
|
@@ -60,6 +60,8 @@ else
|
|
60
60
|
end
|
61
61
|
```
|
62
62
|
|
63
|
+
>**The API username and secret key used to authenticate V3 API requests will not work to authenticate V4 API requests.** If you are attempting to authenticate your request with the 8 character username or 12-16 character secret key the request will return an `auth_failure` error. The API key used for the V4 API will look like the following: `secret_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`. To create new V4 API credentials please go [here](https://app.neverbounce.com/apps/custom-integration/new).
|
64
|
+
|
63
65
|
Now, let's check a single e-mail:
|
64
66
|
|
65
67
|
```ruby
|
@@ -83,7 +83,7 @@ module NeverBounce; module API
|
|
83
83
|
# @raise [StandardError]
|
84
84
|
# @see Request::JobsCreate
|
85
85
|
# @see https://developers.neverbounce.com/v4.0/reference#jobs-create
|
86
|
-
def jobs_create(auto_parse:
|
86
|
+
def jobs_create(auto_parse: false, auto_start: false, filename: nil, remote_input: nil, run_sample: false, supplied_input: nil)
|
87
87
|
raise ArgumentError, "`remote_input` and `supplied_input` can't both be given" if remote_input && supplied_input
|
88
88
|
|
89
89
|
input_location = if (v = remote_input)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neverbounce-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NeverBounce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -137,7 +137,6 @@ files:
|
|
137
137
|
- spec/lib/never_bounce/api/response/single_check_spec.rb
|
138
138
|
- spec/lib/never_bounce/api/response/spec_helper.rb
|
139
139
|
- spec/lib/never_bounce/api/session_spec.rb
|
140
|
-
- spec/lib/never_bounce/api_spec.rb
|
141
140
|
- spec/spec_helper.rb
|
142
141
|
- spec/spec_support/include_dir_context.rb
|
143
142
|
- spec/spec_support/simplecov.rb
|
@@ -210,7 +209,6 @@ test_files:
|
|
210
209
|
- spec/lib/never_bounce/api/response/single_check_spec.rb
|
211
210
|
- spec/lib/never_bounce/api/response/spec_helper.rb
|
212
211
|
- spec/lib/never_bounce/api/session_spec.rb
|
213
|
-
- spec/lib/never_bounce/api_spec.rb
|
214
212
|
- spec/spec_helper.rb
|
215
213
|
- spec/spec_support/include_dir_context.rb
|
216
214
|
- spec/spec_support/simplecov.rb
|