sendgrid_webapi 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.rbenv-version +1 -0
- data/README.rdoc +76 -77
- data/lib/version.rb +1 -1
- data/lib/web_api/blocks.rb +5 -0
- data/lib/web_api/bounces.rb +5 -0
- data/lib/webapi_client.rb +1 -1
- data/sendgrid_webapi.gemspec +1 -1
- 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 +72 -77
- data/spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml +72 -77
- data/spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml +71 -74
- data/spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml +71 -76
- data/spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml +72 -77
- 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 +5 -2
- data/spec/helper_spec.rb +5 -5
- data/spec/sub_user_spec.rb +62 -67
- data/test.rb +5 -0
- metadata +10 -6
- data/spec/cassettes/sub_user/_management/should_get_all_subusers.yml +0 -54
@@ -1,90 +1,91 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
5
|
uri: https://sendgrid.com/apiv2/customer.apps.json
|
6
|
-
body:
|
6
|
+
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string: user=
|
9
|
-
headers:
|
10
|
-
|
11
|
-
-
|
12
|
-
|
13
|
-
-
|
14
|
-
|
15
|
-
|
8
|
+
string: user=sendgrid_testuser3&name=eventnotify&processed=1&dropped=1&deferred=1&delivered=1&bounce=1&click=1&open=1&unsubscribe=1&spamreport=1&url=http%3A%2F%2Fyourdomain.com%2Fevent.php&task=setup&api_user=kyle%40agencieshq.com&api_key=pass
|
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:
|
16
18
|
code: 200
|
17
19
|
message: OK
|
18
|
-
headers:
|
19
|
-
Server:
|
20
|
-
- nginx/
|
21
|
-
Date:
|
22
|
-
-
|
23
|
-
Content-Type:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 01:27:48 GMT
|
25
|
+
Content-Type:
|
24
26
|
- application/json
|
25
|
-
|
27
|
+
Content-Length:
|
28
|
+
- '46'
|
29
|
+
Connection:
|
26
30
|
- keep-alive
|
27
|
-
X-Powered-By:
|
28
|
-
- PHP/5.3.2-1ubuntu4.
|
29
|
-
Cache-Control:
|
30
|
-
-
|
31
|
-
|
32
|
-
-
|
33
|
-
|
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=df8b5389cf476f9b4e09ffc9b8db8c5d:30700d2a3499557b6ed317a004b93fa65fa95cbb;
|
39
|
+
expires=Sun, 16-Feb-2014 01:27:48 GMT; path=/; httponly
|
40
|
+
Vary:
|
34
41
|
- Accept-Encoding
|
35
|
-
|
36
|
-
-
|
37
|
-
|
38
|
-
encoding: US-ASCII
|
39
|
-
string: "{\"message\":\"success\"}"
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"message":"success"}'
|
40
45
|
http_version:
|
41
|
-
recorded_at:
|
42
|
-
- request:
|
46
|
+
recorded_at: Fri, 17 Jan 2014 01:27:48 GMT
|
47
|
+
- request:
|
43
48
|
method: get
|
44
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&name=eventnotify&task=getsettings&user=
|
45
|
-
body:
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&name=eventnotify&task=getsettings&user=sendgrid_testuser3
|
50
|
+
body:
|
46
51
|
encoding: US-ASCII
|
47
|
-
string:
|
48
|
-
headers:
|
49
|
-
|
52
|
+
string: ''
|
53
|
+
headers:
|
54
|
+
User-Agent:
|
55
|
+
- Faraday v0.8.9
|
56
|
+
Accept-Encoding:
|
50
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
51
|
-
Accept:
|
52
|
-
-
|
53
|
-
|
54
|
-
|
55
|
-
response:
|
56
|
-
status:
|
58
|
+
Accept:
|
59
|
+
- '*/*'
|
60
|
+
response:
|
61
|
+
status:
|
57
62
|
code: 200
|
58
63
|
message: OK
|
59
|
-
headers:
|
60
|
-
Server:
|
61
|
-
- nginx/
|
62
|
-
Date:
|
63
|
-
-
|
64
|
-
Content-Type:
|
64
|
+
headers:
|
65
|
+
Server:
|
66
|
+
- nginx/1.4.2
|
67
|
+
Date:
|
68
|
+
- Fri, 17 Jan 2014 01:27:51 GMT
|
69
|
+
Content-Type:
|
65
70
|
- application/json
|
66
|
-
|
71
|
+
Content-Length:
|
72
|
+
- '159'
|
73
|
+
Connection:
|
67
74
|
- keep-alive
|
68
|
-
X-Powered-By:
|
69
|
-
- PHP/5.3.2-1ubuntu4.
|
70
|
-
Cache-Control:
|
71
|
-
-
|
72
|
-
|
73
|
-
-
|
74
|
-
|
75
|
-
-
|
76
|
-
|
75
|
+
X-Powered-By:
|
76
|
+
- PHP/5.3.2-1ubuntu4.22
|
77
|
+
Cache-Control:
|
78
|
+
- no-cache, must-revalidate
|
79
|
+
Expires:
|
80
|
+
- '0'
|
81
|
+
Set-Cookie:
|
82
|
+
- sendgrid_frontend=2a834f0d4ef110386049a1cb8884cb77:9f1efb3a14a4a9d0ff69bc6bcd554773453b4f21;
|
83
|
+
expires=Sun, 16-Feb-2014 01:27:50 GMT; path=/; httponly
|
84
|
+
Vary:
|
77
85
|
- Accept-Encoding
|
78
|
-
|
79
|
-
-
|
80
|
-
|
81
|
-
encoding: ASCII-8BIT
|
82
|
-
string: !binary |
|
83
|
-
H4sIAAAAAAAAA0zKMQrDMAxA0btoLjFdfZYssaw2prYlJDtQQu7eDA7p9h/8
|
84
|
-
HYxaS/Vt4HcQZSQziuDhCQ+IyiK36EWqf8xpo9uBe0UawJzwM5qF6sherQdD
|
85
|
-
TeEaTZaiJKztWjSftbYmfnaz+3LXyGVJdUIus6ONaptkFTiOHwAAAP//AwCy
|
86
|
-
UmwgvQAAAA==
|
87
|
-
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: '{"settings":{"processed":"1","dropped":"1","deferred":"1","delivered":"1","bounce":"1","click":"1","open":"1","unsubscribe":"1","subscribe":"","spamreport":"1","url":"http:\/\/yourdomain.com\/event.php","batch":"","version":"3"}}'
|
88
89
|
http_version:
|
89
|
-
recorded_at:
|
90
|
-
recorded_with: VCR 2.
|
90
|
+
recorded_at: Fri, 17 Jan 2014 01:27:51 GMT
|
91
|
+
recorded_with: VCR 2.8.0
|
@@ -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/apiv2/customer.auth.json?api_key=pass&api_user=user&password=somepass&user=
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.auth.json?api_key=pass&api_user=user&password=somepass&user=sendgrid_testuser3
|
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:26:39 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=179c834ac1cbb3304c64b196818d20c7:4f3bbbc498c35e3e03d98978d13068fbd84a2dd5;
|
39
|
+
expires=Sun, 16-Feb-2014 01:26:39 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:26:39 GMT
|
47
|
+
recorded_with: VCR 2.8.0
|
@@ -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/apiv2/customer.auth.json?api_key=pass&api_user=user&password=badpass&user=
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.auth.json?api_key=pass&api_user=user&password=badpass&user=sendgrid_testuser3
|
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:26:41 GMT
|
25
|
+
Content-Type:
|
26
26
|
- application/json
|
27
|
-
|
27
|
+
Content-Length:
|
28
|
+
- '88'
|
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=6bd0aa7987d76a739e24a843de8da492:95c533021fa9d3a2937f3e80b2f0b9be499a803e;
|
39
|
+
expires=Sun, 16-Feb-2014 01:26:40 GMT; path=/; httponly
|
40
|
+
Vary:
|
38
41
|
- Accept-Encoding
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
encoding: ASCII-8BIT
|
43
|
-
string: !binary |
|
44
|
-
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUkotKsovUtKB0MVKVtFKnnlliTmZKQql
|
45
|
-
xalFeYm5qQqJeSkx+vlFCgWJxcXl+UUpSrG1AAAAAP//AwCK9C85QgAAAA==
|
46
|
-
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"message":"error","errors":["Invalid username and\/or password"]}'
|
47
45
|
http_version:
|
48
|
-
recorded_at:
|
49
|
-
recorded_with: VCR 2.
|
46
|
+
recorded_at: Fri, 17 Jan 2014 01:26:41 GMT
|
47
|
+
recorded_with: VCR 2.8.0
|
@@ -1,48 +1,47 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/api/user.bounces.json?api_key=pass&api_user=user&task=get&user=
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/api/user.bounces.json?api_key=pass&api_user=user&task=get&user=sendgrid_testuser3
|
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:22:47 GMT
|
25
|
+
Content-Type:
|
26
26
|
- application/json
|
27
|
-
|
27
|
+
Content-Length:
|
28
|
+
- '28'
|
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=4a6fb72667ecc836c99dc29b0d2aab38:ca122e4b58018139f063ad9d191ffe7e2f0309a3;
|
39
|
+
expires=Sun, 16-Feb-2014 01:22:46 GMT; path=/; httponly
|
40
|
+
Vary:
|
38
41
|
- Accept-Encoding
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
encoding: ASCII-8BIT
|
43
|
-
string: !binary |
|
44
|
-
H4sIAAAAAAAAA4qOBQAAAP//AwApu0wNAgAAAA==
|
45
|
-
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '[]'
|
46
45
|
http_version:
|
47
|
-
recorded_at:
|
48
|
-
recorded_with: VCR 2.
|
46
|
+
recorded_at: Fri, 17 Jan 2014 01:22:47 GMT
|
47
|
+
recorded_with: VCR 2.8.0
|
@@ -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/user.bounces.json?api_key=pass&api_user=user&email=test@
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/api/user.bounces.json?api_key=pass&api_user=user&email=test@email.com&task=delete&user=sendgrid_testuser3
|
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:22:49 GMT
|
25
|
+
Content-Type:
|
26
26
|
- application/json
|
27
|
-
|
27
|
+
Content-Length:
|
28
|
+
- '60'
|
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=8d081dd5a49de962144c9992a82d7907:ae45544b1b4086056301cd5e3cd3c0ce420ed588;
|
39
|
+
expires=Sun, 16-Feb-2014 01:22:48 GMT; path=/; httponly
|
40
|
+
Vary:
|
38
41
|
- Accept-Encoding
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
encoding: ASCII-8BIT
|
43
|
-
string: !binary |
|
44
|
-
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUnLNTczMUUjJTy1WyMsvUUityCwuUaoF
|
45
|
-
AAAA//8DACrxmdciAAAA
|
46
|
-
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"message":"Email does not exist"}'
|
47
45
|
http_version:
|
48
|
-
recorded_at:
|
49
|
-
recorded_with: VCR 2.
|
46
|
+
recorded_at: Fri, 17 Jan 2014 01:22:49 GMT
|
47
|
+
recorded_with: VCR 2.8.0
|