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,46 +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.apps.json?api_key=pass&api_user=user&name=badappname&task=activate&user=
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&name=badappname&task=activate&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:
|
26
|
-
-
|
27
|
-
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 02:01:59 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '93'
|
29
|
+
Connection:
|
28
30
|
- keep-alive
|
29
|
-
X-Powered-By:
|
30
|
-
- PHP/5.3.2-1ubuntu4.
|
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=eaa37a6c4ddc2eab62382957f0474f12:c1d5fca1aa850da5b2cc9be5fe2a1cb73a0e6f43;
|
39
|
+
expires=Sun, 16-Feb-2014 02:01:59 GMT; path=/; httponly
|
40
|
+
Vary:
|
34
41
|
- Accept-Encoding
|
35
|
-
|
36
|
-
-
|
37
|
-
|
38
|
-
encoding: ASCII-8BIT
|
39
|
-
string: !binary |
|
40
|
-
H4sIAAAAAAAAA6pWSi0qyi9SsqpWSs5PSVWyMjEw1FHKTS0uTkwH8pQCUoty
|
41
|
-
M4uLM/PzFFJS8zJTU3QU8vJLFBJLSzLyizKrUlOUamsBAAAA//8DAJwS+OVE
|
42
|
-
AAAA
|
43
|
-
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"error":{"code":401,"message":"Permission denied, not authorized"}}'
|
44
45
|
http_version:
|
45
|
-
recorded_at:
|
46
|
-
recorded_with: VCR 2.
|
46
|
+
recorded_at: Fri, 17 Jan 2014 02:01:59 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.apps.json?api_key=pass&api_user=user&name=clicktrack&task=activate&user=
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&name=clicktrack&task=activate&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 02:01:57 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=ffe88b9f65f07498ee9abe04cdd44875:f6c7e237bbefacb6e16c0c62c296f6ab6105b703;
|
39
|
+
expires=Sun, 16-Feb-2014 02:01:57 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 02:01:57 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.apps.json?api_key=pass&api_user=user&name=opentrack&task=activate&user=
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&name=opentrack&task=activate&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:27:38 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=0f1d816a626a2628288fb873ded7c144:c6e8b041f3fa4d71205f6aa6541e720058fa0ba5;
|
39
|
+
expires=Sun, 16-Feb-2014 01:27:38 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:27: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.apps.json?api_key=pass&api_user=user&name=opentrack&task=deactivate&user=
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&name=opentrack&task=deactivate&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:27:41 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=0080f71903a40d8042043675a9167ae8:5a79583070b0510ae094065fab32bae81c9cd9a1;
|
39
|
+
expires=Sun, 16-Feb-2014 01:27:41 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:27:42 GMT
|
47
|
+
recorded_with: VCR 2.8.0
|
@@ -1,50 +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.apps.json?api_key=pass&api_user=user&name=eventnotify&task=getsettings&user=
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&name=eventnotify&task=getsettings&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:27:45 GMT
|
25
|
+
Content-Type:
|
26
26
|
- application/json
|
27
|
-
|
27
|
+
Content-Length:
|
28
|
+
- '129'
|
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=8791b9945d7699ee06a355dec7f243e1:e70e8c1eafb2f664f54422925f107c3c1b8b0db5;
|
39
|
+
expires=Sun, 16-Feb-2014 01:27:45 GMT; path=/; httponly
|
40
|
+
Vary:
|
38
41
|
- Accept-Encoding
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
encoding: ASCII-8BIT
|
43
|
-
string: !binary |
|
44
|
-
H4sIAAAAAAAAA0TKQQ6AIAwF0bt07Qm4jZSvISJtWnBjvLsxGN29SeYkR2u5
|
45
|
-
rk7hJDVhuCNRIJoomah+gQVmf5V84MsovTKGuWTeBkVRh3r1Hp0tx/dynXeD
|
46
|
-
irV3sPLgum4AAAD//wMAMxFhAJIAAAA=
|
47
|
-
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"settings":{"processed":"","dropped":"","deferred":"","delivered":"","bounce":"","click":"","open":"","unsubscribe":"","subscribe":"","spamreport":"","url":"","batch":"","version":"1"}}'
|
48
45
|
http_version:
|
49
|
-
recorded_at:
|
50
|
-
recorded_with: VCR 2.
|
46
|
+
recorded_at: Fri, 17 Jan 2014 01:27:45 GMT
|
47
|
+
recorded_with: VCR 2.8.0
|
@@ -1,64 +1,72 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&task=getavailable&user=
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&task=getavailable&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:27:36 GMT
|
25
|
+
Content-Type:
|
26
26
|
- application/json
|
27
|
-
|
27
|
+
Content-Length:
|
28
|
+
- '861'
|
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=4b7dfa83a1993cca06825c1841d7e030:0b9051b43ae6630759e6d2f1773a7566ac4bb3ff;
|
39
|
+
expires=Sun, 16-Feb-2014 01:27:35 GMT; path=/; httponly
|
40
|
+
Vary:
|
38
41
|
- Accept-Encoding
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '[{"name":"gravatar","title":"Gravatar","description":"Appends your
|
45
|
+
gravatar to each HTML email.","activated":false},{"name":"clicktrack","title":"Click
|
46
|
+
Tracking","description":"Overwrites every link to track every click in emails.","activated":false},{"name":"subscriptiontrack","title":"Subscription
|
47
|
+
Tracking","description":"Adds unsubscribe links to the bottom of the text
|
48
|
+
and HTML emails. Future emails won''t be delivered to unsubscribed users.","activated":false},{"name":"opentrack","title":"Open
|
49
|
+
Tracking","description":"Appends an invisible image to HTML emails to track
|
50
|
+
emails that have been opened.","activated":false},{"name":"footer","title":"Footer","description":"Allows
|
51
|
+
you to add a custom footer to outgoing email.","activated":false},{"name":"spamcheck","title":"Spam
|
52
|
+
Checker","description":"Check outbound messages for spam content.","activated":false},{"name":"ganalytics","title":"Google
|
53
|
+
Analytics","description":"Track your conversion rates and ROI with Google
|
54
|
+
Analytics.","activated":false},{"name":"template","title":"Email Template","description":"Allows
|
55
|
+
you to customize your outgoing HTML emails.","activated":false},{"name":"domainkeys","title":"Domain
|
56
|
+
Keys","description":"Allows email to be signed with DomainKeys.","activated":false},{"name":"bcc","title":"BCC","description":"Automatically
|
57
|
+
BCC an address for every e-mail sent.","activated":false},{"name":"eventnotify","title":"Event
|
58
|
+
Notification","description":"Controls notifications for events, such as bounces,
|
59
|
+
clicks, and opens.","activated":false},{"name":"seedlist","title":"Return
|
60
|
+
Path Seedlist","description":"For Return Path customers, with your seedlist
|
61
|
+
for delivery monitoring.","activated":false},{"name":"forwardspam","title":"Forward
|
62
|
+
Spam","description":"Allows for a copy of spam reports to be forwarded to
|
63
|
+
an email address.","activated":false},{"name":"addresswhitelist","title":"Address
|
64
|
+
Whitelist","description":"Address \/ domains that should never have email
|
65
|
+
suppressed.","activated":false},{"name":"dkim","title":"DKIM","description":"Allows
|
66
|
+
email to be signed with DKIM. Cannot be disabled.","activated":true},{"name":"newrelic","title":"SendGrid
|
67
|
+
for New Relic","description":"Integrate SendGrid with your New Relic account
|
68
|
+
to access your email statistics via the <a target=\"blank\" href=\"https:\/\/newrelic.com\/sendgrid\">New
|
69
|
+
Relic<\/a> Dashboard.","activated":false}]'
|
62
70
|
http_version:
|
63
|
-
recorded_at:
|
64
|
-
recorded_with: VCR 2.
|
71
|
+
recorded_at: Fri, 17 Jan 2014 01:27:36 GMT
|
72
|
+
recorded_with: VCR 2.8.0
|