sendgrid_webapi 0.0.2 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +132 -0
- data/.circleci/setup-rubygems.sh +5 -0
- data/.gitignore +27 -1
- data/.rspec +2 -2
- data/.ruby-version +1 -0
- data/.tool-versions +1 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +103 -79
- data/lib/api_key/management.rb +33 -0
- data/lib/api_key/modules.rb +10 -0
- data/lib/apikey_client.rb +11 -0
- data/lib/base.rb +47 -13
- data/lib/helper.rb +8 -8
- data/lib/sendgrid_webapi.rb +1 -0
- data/lib/sub_user/modules.rb +15 -15
- data/lib/version.rb +2 -2
- data/lib/web_api/blocks.rb +5 -0
- data/lib/web_api/bounces.rb +5 -0
- data/lib/web_api/modules.rb +15 -11
- data/lib/web_api/version.rb +1 -1
- data/lib/webapi_client.rb +1 -1
- data/sendgrid_webapi.gemspec +12 -8
- data/spec/cassettes/client/_modules/_block/should_get_block_emails.yml +29 -41
- data/spec/cassettes/client/_modules/_block/should_get_totals_blocks.yml +36 -0
- data/spec/cassettes/client/_modules/_block/should_try_delete_not_existing_block_email.yml +29 -42
- data/spec/cassettes/client/_modules/_bounce/should_get_bounce_emails.yml +27 -31
- data/spec/cassettes/client/_modules/_bounce/should_get_totals_bounces.yml +36 -0
- data/spec/cassettes/client/_modules/_bounce/should_try_delete_not_existing_bounce_email.yml +27 -32
- data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml +38 -40
- data/spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml +38 -40
- data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml +38 -40
- data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails.yml +27 -31
- data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml +27 -32
- data/spec/cassettes/client/_modules/_parse_email/should_delete_parse_email.yml +73 -76
- data/spec/cassettes/client/_modules/_parse_email/should_get_parse_email.yml +38 -41
- data/spec/cassettes/client/_modules/_parse_email/should_set_parse_email.yml +38 -40
- data/spec/cassettes/client/_modules/_profile/should_get_profile.yml +39 -43
- data/spec/cassettes/client/_modules/_profile/should_set_first_name.yml +109 -117
- data/spec/cassettes/client/_modules/_spam/should_get_spam_emails.yml +27 -31
- data/spec/cassettes/client/_modules/_spam/should_try_delete_not_existing_spam_emails.yml +27 -32
- data/spec/cassettes/client/_modules/_unsubscribe/should_add_unsubscribe_emails.yml +27 -31
- data/spec/cassettes/client/_modules/_unsubscribe/should_delete_unsubscribe_email.yml +27 -31
- data/spec/cassettes/client/_modules/_unsubscribe/should_get_unsubscribe_emails.yml +27 -32
- data/spec/cassettes/client/_modules/_unsubscribe/should_try_delete_not_existing_unsubscribe_emails.yml +27 -32
- data/spec/cassettes/helper/_create_sub_user_account/should_create_sub_user_account.yml +248 -255
- data/spec/cassettes/helper/_run_sendgrid_query/should_raise_with_unsucessfull_request.yml +39 -38
- data/spec/cassettes/helper/_run_sendgrid_query/should_run_sendgrid_request.yml +38 -40
- data/spec/cassettes/sub_user/_apps/should_activate_app.yml +38 -40
- data/spec/cassettes/sub_user/_apps/should_deactivate_app.yml +38 -40
- data/spec/cassettes/sub_user/_apps/should_get_current_setting_from_one_app.yml +38 -41
- data/spec/cassettes/sub_user/_apps/should_return_available_apps.yml +63 -55
- data/spec/cassettes/sub_user/_apps/should_set_current_app.yml +73 -72
- data/spec/cassettes/sub_user/_authentication/should_auth_a_sub_user.yml +38 -40
- data/spec/cassettes/sub_user/_authentication/should_return_error_with_a_bad_sub_user.yml +38 -40
- data/spec/cassettes/sub_user/_bounces/should_returns_bounce_emails.yml +38 -39
- data/spec/cassettes/sub_user/_bounces/should_tries_to_delete_unexisting_bounce_emails.yml +38 -40
- data/spec/cassettes/sub_user/_event_notification/should_add_event_notification_url.yml +38 -40
- data/spec/cassettes/sub_user/_event_notification/should_delete_event_notification_url.yml +38 -40
- data/spec/cassettes/sub_user/_event_notification/should_get_event_notification_url.yml +38 -40
- data/spec/cassettes/sub_user/_invalid_emails/should_return_invalid_emails.yml +38 -39
- data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml +38 -40
- data/spec/cassettes/sub_user/_ip_management/should_return_all_ips_available.yml +38 -40
- data/spec/cassettes/sub_user/_ip_management/should_show_ip_subuser.yml +38 -40
- data/spec/cassettes/sub_user/_limits/should_decrements_credits_for_a_sub_user.yml +73 -77
- data/spec/cassettes/sub_user/_limits/should_delete_all_limits_for_a_sub_user.yml +73 -76
- data/spec/cassettes/sub_user/_limits/should_increments_credits_for_a_sub_user.yml +73 -77
- data/spec/cassettes/sub_user/_limits/should_list_the_limits_for_a_sub_user.yml +38 -40
- data/spec/cassettes/sub_user/_limits/should_reset_all_limits_for_a_sub_user.yml +73 -77
- data/spec/cassettes/sub_user/_limits/should_returns_limits_for_a_sub_user.yml +38 -40
- data/spec/cassettes/sub_user/_limits/should_set_total_credits.yml +38 -40
- data/spec/cassettes/sub_user/_management/should_add_new_subuser.yml +38 -40
- data/spec/cassettes/sub_user/_management/should_disable_sub_user_for_send_email.yml +38 -40
- data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_access_to_website.yml +38 -40
- data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_send_email.yml +38 -40
- data/spec/cassettes/sub_user/_management/should_update_sub_user.yml +38 -40
- data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml +73 -78
- data/spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml +73 -78
- data/spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml +73 -76
- data/spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml +73 -78
- data/spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml +73 -78
- data/spec/cassettes/sub_user/_parse_email/should_delete_parse_email.yml +73 -76
- data/spec/cassettes/sub_user/_parse_email/should_get_parse_email.yml +38 -41
- data/spec/cassettes/sub_user/_parse_email/should_set_parse_email.yml +38 -40
- data/spec/cassettes/sub_user/_spam/should_return_spam_mails.yml +38 -39
- data/spec/cassettes/sub_user/_spam/should_tries_to_delete_unexisting_spam_mail.yml +38 -40
- data/spec/cassettes/sub_user/_unsubscribes/should_add_bounce_email.yml +38 -40
- data/spec/cassettes/sub_user/_unsubscribes/should_delete_existing_bounce_email.yml +38 -40
- data/spec/cassettes/sub_user/_unsubscribes/should_delete_unexisting_bounce_email.yml +38 -40
- data/spec/cassettes/sub_user/_unsubscribes/should_returns_bounce_emails.yml +38 -40
- data/spec/client_spec.rb +7 -4
- data/spec/helper_spec.rb +9 -9
- data/spec/sub_user_spec.rb +63 -68
- data/test.rb +5 -0
- metadata +90 -58
- data/.travis.yml +0 -5
- data/spec/cassettes/sub_user/_management/should_get_all_subusers.yml +0 -54
@@ -1,40 +1,36 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/api/bounces.get.json
|
6
|
-
body:
|
5
|
+
uri: https://api.sendgrid.com/api/bounces.get.json
|
6
|
+
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
9
|
-
headers:
|
10
|
-
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.9
|
12
|
+
Accept-Encoding:
|
11
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- nginx/
|
23
|
-
Date:
|
24
|
-
-
|
25
|
-
Content-Type:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 01:39:31 GMT
|
25
|
+
Content-Type:
|
26
26
|
- text/html
|
27
|
-
Transfer-Encoding:
|
27
|
+
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
29
|
+
Connection:
|
30
30
|
- keep-alive
|
31
|
-
|
32
|
-
-
|
33
|
-
|
34
|
-
encoding: ASCII-8BIT
|
35
|
-
string: !binary |
|
36
|
-
H4sIAAAAAAAAA4uOBQApu0wNAgAAAA==
|
37
|
-
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '[]'
|
38
34
|
http_version:
|
39
|
-
recorded_at:
|
40
|
-
recorded_with: VCR 2.
|
35
|
+
recorded_at: Fri, 17 Jan 2014 01:39:31 GMT
|
36
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.sendgrid.com/api/bounces.count.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.9
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 403
|
19
|
+
message: Forbidden
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 12:25:48 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"error": "Bad username / password"}'
|
34
|
+
http_version:
|
35
|
+
recorded_at: Fri, 17 Jan 2014 12:25:48 GMT
|
36
|
+
recorded_with: VCR 2.8.0
|
@@ -1,41 +1,36 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/api/bounces.delete.json?
|
6
|
-
body:
|
5
|
+
uri: https://api.sendgrid.com/api/bounces.delete.json?email=test@example.com
|
6
|
+
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
9
|
-
headers:
|
10
|
-
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.9
|
12
|
+
Accept-Encoding:
|
11
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- nginx/
|
23
|
-
Date:
|
24
|
-
-
|
25
|
-
Content-Type:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 01:39:32 GMT
|
25
|
+
Content-Type:
|
26
26
|
- text/html
|
27
|
-
Transfer-Encoding:
|
27
|
+
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
29
|
+
Connection:
|
30
30
|
- keep-alive
|
31
|
-
|
32
|
-
-
|
33
|
-
|
34
|
-
encoding: ASCII-8BIT
|
35
|
-
string: !binary |
|
36
|
-
H4sIAAAAAAAAA6tWyk0tLk5MT1WyUlByzU3MzFFIyU8tVsjLL1FIrcgsLlGq
|
37
|
-
BQBKtWgQIwAAAA==
|
38
|
-
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"message": "Email does not exist"}'
|
39
34
|
http_version:
|
40
|
-
recorded_at:
|
41
|
-
recorded_with: VCR 2.
|
35
|
+
recorded_at: Fri, 17 Jan 2014 01:39:32 GMT
|
36
|
+
recorded_with: VCR 2.8.0
|
data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml
CHANGED
@@ -1,49 +1,47 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/api/eventposturl.delete.json
|
6
|
-
body:
|
5
|
+
uri: https://api.sendgrid.com/api/eventposturl.delete.json
|
6
|
+
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
9
|
-
headers:
|
10
|
-
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.9
|
12
|
+
Accept-Encoding:
|
11
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- nginx/
|
23
|
-
Date:
|
24
|
-
-
|
25
|
-
Content-Type:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 01:52:22 GMT
|
25
|
+
Content-Type:
|
26
26
|
- application/json
|
27
|
-
|
27
|
+
Content-Length:
|
28
|
+
- '46'
|
29
|
+
Connection:
|
28
30
|
- keep-alive
|
29
|
-
X-Powered-By:
|
30
|
-
- PHP/5.3.2-1ubuntu4.
|
31
|
-
Cache-Control:
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
37
|
-
|
31
|
+
X-Powered-By:
|
32
|
+
- PHP/5.3.2-1ubuntu4.22
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache, must-revalidate
|
35
|
+
Expires:
|
36
|
+
- '0'
|
37
|
+
Set-Cookie:
|
38
|
+
- sendgrid_frontend=7423d5c751b5f5472e823624050fad49:71d21b49b56c36fdb5abfc74038a1a63f3c51c66;
|
39
|
+
expires=Sun, 16-Feb-2014 01:52:22 GMT; path=/; httponly
|
40
|
+
Vary:
|
38
41
|
- Accept-Encoding
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
encoding: ASCII-8BIT
|
43
|
-
string: !binary |
|
44
|
-
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
45
|
-
AA==
|
46
|
-
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"message":"success"}'
|
47
45
|
http_version:
|
48
|
-
recorded_at:
|
49
|
-
recorded_with: VCR 2.
|
46
|
+
recorded_at: Fri, 17 Jan 2014 01:52:22 GMT
|
47
|
+
recorded_with: VCR 2.8.0
|
data/spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml
CHANGED
@@ -1,49 +1,47 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/api/eventposturl.get.json
|
6
|
-
body:
|
5
|
+
uri: https://api.sendgrid.com/api/eventposturl.get.json
|
6
|
+
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
9
|
-
headers:
|
10
|
-
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.9
|
12
|
+
Accept-Encoding:
|
11
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- nginx/
|
23
|
-
Date:
|
24
|
-
-
|
25
|
-
Content-Type:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 01:52:20 GMT
|
25
|
+
Content-Type:
|
26
26
|
- application/json
|
27
|
-
|
27
|
+
Content-Length:
|
28
|
+
- '69'
|
29
|
+
Connection:
|
28
30
|
- keep-alive
|
29
|
-
X-Powered-By:
|
30
|
-
- PHP/5.3.2-1ubuntu4.
|
31
|
-
Cache-Control:
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
37
|
-
|
31
|
+
X-Powered-By:
|
32
|
+
- PHP/5.3.2-1ubuntu4.22
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache, must-revalidate
|
35
|
+
Expires:
|
36
|
+
- '0'
|
37
|
+
Set-Cookie:
|
38
|
+
- sendgrid_frontend=2645ddaada41dfe921a85861ed60b651:3a8e6294a82301e43493fa0e9c2b5f4dfb746e7c;
|
39
|
+
expires=Sun, 16-Feb-2014 01:52:19 GMT; path=/; httponly
|
40
|
+
Vary:
|
38
41
|
- Accept-Encoding
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
encoding: ASCII-8BIT
|
43
|
-
string: !binary |
|
44
|
-
H4sIAAAAAAAAA4quViotylGyUsooKSmwitGP0S8vL9erzC8tKsgvLgFKZaQW
|
45
|
-
peol5+cq1cYCAAAA//8DAEwaSHgsAAAA
|
46
|
-
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '[{"url":"http:\/\/www.yourposturlhere.com"}]'
|
47
45
|
http_version:
|
48
|
-
recorded_at:
|
49
|
-
recorded_with: VCR 2.
|
46
|
+
recorded_at: Fri, 17 Jan 2014 01:52:20 GMT
|
47
|
+
recorded_with: VCR 2.8.0
|
data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml
CHANGED
@@ -1,49 +1,47 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/api/eventposturl.set.json?
|
6
|
-
body:
|
5
|
+
uri: https://api.sendgrid.com/api/eventposturl.set.json?url=http://www.yourposturlhere.com
|
6
|
+
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
9
|
-
headers:
|
10
|
-
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.9
|
12
|
+
Accept-Encoding:
|
11
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- nginx/
|
23
|
-
Date:
|
24
|
-
-
|
25
|
-
Content-Type:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 01:52:17 GMT
|
25
|
+
Content-Type:
|
26
26
|
- application/json
|
27
|
-
|
27
|
+
Content-Length:
|
28
|
+
- '46'
|
29
|
+
Connection:
|
28
30
|
- keep-alive
|
29
|
-
X-Powered-By:
|
30
|
-
- PHP/5.3.2-1ubuntu4.
|
31
|
-
Cache-Control:
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
37
|
-
|
31
|
+
X-Powered-By:
|
32
|
+
- PHP/5.3.2-1ubuntu4.22
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache, must-revalidate
|
35
|
+
Expires:
|
36
|
+
- '0'
|
37
|
+
Set-Cookie:
|
38
|
+
- sendgrid_frontend=c176562a7ab27cebf8de42e7ea519428:fbf5a371654e7fbc3c8987d07ba0b89dbe14ec42;
|
39
|
+
expires=Sun, 16-Feb-2014 01:52:17 GMT; path=/; httponly
|
40
|
+
Vary:
|
38
41
|
- Accept-Encoding
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
encoding: ASCII-8BIT
|
43
|
-
string: !binary |
|
44
|
-
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
45
|
-
AA==
|
46
|
-
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"message":"success"}'
|
47
45
|
http_version:
|
48
|
-
recorded_at:
|
49
|
-
recorded_with: VCR 2.
|
46
|
+
recorded_at: Fri, 17 Jan 2014 01:52:17 GMT
|
47
|
+
recorded_with: VCR 2.8.0
|
@@ -1,40 +1,36 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/api/invalidemails.get.json
|
6
|
-
body:
|
5
|
+
uri: https://api.sendgrid.com/api/invalidemails.get.json
|
6
|
+
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
9
|
-
headers:
|
10
|
-
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.9
|
12
|
+
Accept-Encoding:
|
11
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- nginx/
|
23
|
-
Date:
|
24
|
-
-
|
25
|
-
Content-Type:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 01:39:56 GMT
|
25
|
+
Content-Type:
|
26
26
|
- text/html
|
27
|
-
Transfer-Encoding:
|
27
|
+
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
29
|
+
Connection:
|
30
30
|
- keep-alive
|
31
|
-
|
32
|
-
-
|
33
|
-
|
34
|
-
encoding: ASCII-8BIT
|
35
|
-
string: !binary |
|
36
|
-
H4sIAAAAAAAAA4uOBQApu0wNAgAAAA==
|
37
|
-
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '[]'
|
38
34
|
http_version:
|
39
|
-
recorded_at:
|
40
|
-
recorded_with: VCR 2.
|
35
|
+
recorded_at: Fri, 17 Jan 2014 01:39:57 GMT
|
36
|
+
recorded_with: VCR 2.8.0
|
data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml
CHANGED
@@ -1,41 +1,36 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/api/invalidemails.delete.json?
|
6
|
-
body:
|
5
|
+
uri: https://api.sendgrid.com/api/invalidemails.delete.json?email=test@example.com
|
6
|
+
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
9
|
-
headers:
|
10
|
-
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.9
|
12
|
+
Accept-Encoding:
|
11
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- nginx/
|
23
|
-
Date:
|
24
|
-
-
|
25
|
-
Content-Type:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 01:39:58 GMT
|
25
|
+
Content-Type:
|
26
26
|
- text/html
|
27
|
-
Transfer-Encoding:
|
27
|
+
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
29
|
+
Connection:
|
30
30
|
- keep-alive
|
31
|
-
|
32
|
-
-
|
33
|
-
|
34
|
-
encoding: ASCII-8BIT
|
35
|
-
string: !binary |
|
36
|
-
H4sIAAAAAAAAA6tWyk0tLk5MT1WyUlByzU3MzFFIyU8tVsjLL1FIrcgsLlGq
|
37
|
-
BQBKtWgQIwAAAA==
|
38
|
-
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"message": "Email does not exist"}'
|
39
34
|
http_version:
|
40
|
-
recorded_at:
|
41
|
-
recorded_with: VCR 2.
|
35
|
+
recorded_at: Fri, 17 Jan 2014 01:39:58 GMT
|
36
|
+
recorded_with: VCR 2.8.0
|