sendgrid_webapi 0.0.2 → 0.0.3

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 (80) hide show
  1. data/.rbenv-version +1 -0
  2. data/README.rdoc +76 -77
  3. data/lib/version.rb +1 -1
  4. data/lib/web_api/blocks.rb +5 -0
  5. data/lib/web_api/bounces.rb +5 -0
  6. data/lib/webapi_client.rb +1 -1
  7. data/sendgrid_webapi.gemspec +1 -1
  8. data/spec/cassettes/client/_modules/_block/should_get_block_emails.yml +29 -41
  9. data/spec/cassettes/client/_modules/_block/should_get_totals_blocks.yml +36 -0
  10. data/spec/cassettes/client/_modules/_block/should_try_delete_not_existing_block_email.yml +29 -42
  11. data/spec/cassettes/client/_modules/_bounce/should_get_bounce_emails.yml +27 -31
  12. data/spec/cassettes/client/_modules/_bounce/should_get_totals_bounces.yml +36 -0
  13. data/spec/cassettes/client/_modules/_bounce/should_try_delete_not_existing_bounce_email.yml +27 -32
  14. data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml +38 -40
  15. data/spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml +38 -40
  16. data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml +38 -40
  17. data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails.yml +27 -31
  18. data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml +27 -32
  19. data/spec/cassettes/client/_modules/_parse_email/should_delete_parse_email.yml +73 -76
  20. data/spec/cassettes/client/_modules/_parse_email/should_get_parse_email.yml +38 -41
  21. data/spec/cassettes/client/_modules/_parse_email/should_set_parse_email.yml +38 -40
  22. data/spec/cassettes/client/_modules/_profile/should_get_profile.yml +39 -43
  23. data/spec/cassettes/client/_modules/_profile/should_set_first_name.yml +109 -117
  24. data/spec/cassettes/client/_modules/_spam/should_get_spam_emails.yml +27 -31
  25. data/spec/cassettes/client/_modules/_spam/should_try_delete_not_existing_spam_emails.yml +27 -32
  26. data/spec/cassettes/client/_modules/_unsubscribe/should_add_unsubscribe_emails.yml +27 -31
  27. data/spec/cassettes/client/_modules/_unsubscribe/should_delete_unsubscribe_email.yml +27 -31
  28. data/spec/cassettes/client/_modules/_unsubscribe/should_get_unsubscribe_emails.yml +27 -32
  29. data/spec/cassettes/client/_modules/_unsubscribe/should_try_delete_not_existing_unsubscribe_emails.yml +27 -32
  30. data/spec/cassettes/helper/_create_sub_user_account/should_create_sub_user_account.yml +248 -255
  31. data/spec/cassettes/helper/_run_sendgrid_query/should_raise_with_unsucessfull_request.yml +39 -38
  32. data/spec/cassettes/helper/_run_sendgrid_query/should_run_sendgrid_request.yml +38 -40
  33. data/spec/cassettes/sub_user/_apps/should_activate_app.yml +38 -40
  34. data/spec/cassettes/sub_user/_apps/should_deactivate_app.yml +38 -40
  35. data/spec/cassettes/sub_user/_apps/should_get_current_setting_from_one_app.yml +38 -41
  36. data/spec/cassettes/sub_user/_apps/should_return_available_apps.yml +63 -55
  37. data/spec/cassettes/sub_user/_apps/should_set_current_app.yml +73 -72
  38. data/spec/cassettes/sub_user/_authentication/should_auth_a_sub_user.yml +38 -40
  39. data/spec/cassettes/sub_user/_authentication/should_return_error_with_a_bad_sub_user.yml +38 -40
  40. data/spec/cassettes/sub_user/_bounces/should_returns_bounce_emails.yml +38 -39
  41. data/spec/cassettes/sub_user/_bounces/should_tries_to_delete_unexisting_bounce_emails.yml +38 -40
  42. data/spec/cassettes/sub_user/_event_notification/should_add_event_notification_url.yml +38 -40
  43. data/spec/cassettes/sub_user/_event_notification/should_delete_event_notification_url.yml +38 -40
  44. data/spec/cassettes/sub_user/_event_notification/should_get_event_notification_url.yml +38 -40
  45. data/spec/cassettes/sub_user/_invalid_emails/should_return_invalid_emails.yml +38 -39
  46. data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml +38 -40
  47. data/spec/cassettes/sub_user/_ip_management/should_return_all_ips_available.yml +38 -40
  48. data/spec/cassettes/sub_user/_ip_management/should_show_ip_subuser.yml +38 -40
  49. data/spec/cassettes/sub_user/_limits/should_decrements_credits_for_a_sub_user.yml +73 -77
  50. data/spec/cassettes/sub_user/_limits/should_delete_all_limits_for_a_sub_user.yml +73 -76
  51. data/spec/cassettes/sub_user/_limits/should_increments_credits_for_a_sub_user.yml +73 -77
  52. data/spec/cassettes/sub_user/_limits/should_list_the_limits_for_a_sub_user.yml +38 -40
  53. data/spec/cassettes/sub_user/_limits/should_reset_all_limits_for_a_sub_user.yml +73 -77
  54. data/spec/cassettes/sub_user/_limits/should_returns_limits_for_a_sub_user.yml +38 -40
  55. data/spec/cassettes/sub_user/_limits/should_set_total_credits.yml +38 -40
  56. data/spec/cassettes/sub_user/_management/should_add_new_subuser.yml +38 -40
  57. data/spec/cassettes/sub_user/_management/should_disable_sub_user_for_send_email.yml +38 -40
  58. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_access_to_website.yml +38 -40
  59. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_send_email.yml +38 -40
  60. data/spec/cassettes/sub_user/_management/should_update_sub_user.yml +38 -40
  61. data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml +72 -77
  62. data/spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml +72 -77
  63. data/spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml +71 -74
  64. data/spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml +71 -76
  65. data/spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml +72 -77
  66. data/spec/cassettes/sub_user/_parse_email/should_delete_parse_email.yml +73 -76
  67. data/spec/cassettes/sub_user/_parse_email/should_get_parse_email.yml +38 -41
  68. data/spec/cassettes/sub_user/_parse_email/should_set_parse_email.yml +38 -40
  69. data/spec/cassettes/sub_user/_spam/should_return_spam_mails.yml +38 -39
  70. data/spec/cassettes/sub_user/_spam/should_tries_to_delete_unexisting_spam_mail.yml +38 -40
  71. data/spec/cassettes/sub_user/_unsubscribes/should_add_bounce_email.yml +38 -40
  72. data/spec/cassettes/sub_user/_unsubscribes/should_delete_existing_bounce_email.yml +38 -40
  73. data/spec/cassettes/sub_user/_unsubscribes/should_delete_unexisting_bounce_email.yml +38 -40
  74. data/spec/cassettes/sub_user/_unsubscribes/should_returns_bounce_emails.yml +38 -40
  75. data/spec/client_spec.rb +5 -2
  76. data/spec/helper_spec.rb +5 -5
  77. data/spec/sub_user_spec.rb +62 -67
  78. data/test.rb +5 -0
  79. metadata +10 -6
  80. 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=test-1
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
- Accept-Encoding:
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
- User-Agent:
15
- - Ruby
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/0.7.65
23
- Date:
24
- - Wed, 04 Jul 2012 19:24:34 GMT
25
- Content-Type:
26
- - text/html; charset=utf-8
27
- Connection:
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.14
31
- Content-Encoding:
32
- - gzip
33
- Vary:
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
- Content-Length:
36
- - "93"
37
- body:
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: Wed, 04 Jul 2012 19:24:35 GMT
46
- recorded_with: VCR 2.1.1
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=test-1
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
- Accept-Encoding:
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
- User-Agent:
15
- - Ruby
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/0.7.65
23
- Date:
24
- - Wed, 04 Jul 2012 19:24:29 GMT
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
- Connection:
27
+ Content-Length:
28
+ - '46'
29
+ Connection:
28
30
  - keep-alive
29
- X-Powered-By:
30
- - PHP/5.3.2-1ubuntu4.14
31
- Cache-Control:
32
- - private
33
- Set-Cookie:
34
- - sendgrid_frontend=2c1287c6b7756577b1504192aa1af84f:eaf21e4bd794552cbd99c730c45647fe51f24662; expires=Fri, 03-Aug-2012 19:24:29 GMT; path=/; httponly
35
- Content-Encoding:
36
- - gzip
37
- Vary:
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
- Content-Length:
40
- - "46"
41
- body:
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: Wed, 04 Jul 2012 19:24:30 GMT
49
- recorded_with: VCR 2.1.1
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=chebyte3
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
- Accept-Encoding:
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
- User-Agent:
15
- - Ruby
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/0.7.65
23
- Date:
24
- - Mon, 02 Jul 2012 14:36:16 GMT
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
- Connection:
27
+ Content-Length:
28
+ - '46'
29
+ Connection:
28
30
  - keep-alive
29
- X-Powered-By:
30
- - PHP/5.3.2-1ubuntu4.14
31
- Cache-Control:
32
- - private
33
- Set-Cookie:
34
- - sendgrid_frontend=f4ff56737866667b86cc7576dc90c552:45cb0b5e29cfa34270c7d02c3ec0f3ade90215bd; expires=Wed, 01-Aug-2012 14:35:52 GMT; path=/; httponly
35
- Content-Encoding:
36
- - gzip
37
- Vary:
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
- Content-Length:
40
- - "46"
41
- body:
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: Mon, 02 Jul 2012 14:36:16 GMT
49
- recorded_with: VCR 2.1.1
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=chebyte3
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
- Accept-Encoding:
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
- User-Agent:
15
- - Ruby
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/0.7.65
23
- Date:
24
- - Mon, 02 Jul 2012 14:36:18 GMT
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
- Connection:
27
+ Content-Length:
28
+ - '46'
29
+ Connection:
28
30
  - keep-alive
29
- X-Powered-By:
30
- - PHP/5.3.2-1ubuntu4.14
31
- Cache-Control:
32
- - private
33
- Set-Cookie:
34
- - sendgrid_frontend=29dd0a4bf8a0fbbee38b37c8b4ac5bb8:886855815c30c4bd6105a4c6bcb1198e5ba23784; expires=Wed, 01-Aug-2012 14:35:53 GMT; path=/; httponly
35
- Content-Encoding:
36
- - gzip
37
- Vary:
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
- Content-Length:
40
- - "46"
41
- body:
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: Mon, 02 Jul 2012 14:36:18 GMT
49
- recorded_with: VCR 2.1.1
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=chebyte3
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
- Accept-Encoding:
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
- User-Agent:
15
- - Ruby
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/0.7.65
23
- Date:
24
- - Mon, 02 Jul 2012 14:36:20 GMT
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
- Connection:
27
+ Content-Length:
28
+ - '129'
29
+ Connection:
28
30
  - keep-alive
29
- X-Powered-By:
30
- - PHP/5.3.2-1ubuntu4.14
31
- Cache-Control:
32
- - private
33
- Set-Cookie:
34
- - sendgrid_frontend=7f5ee3113018df7a80db4c5bf529d4d1:35cd422c3ec109d96412260802e86c3c7f06682a; expires=Wed, 01-Aug-2012 14:35:56 GMT; path=/; httponly
35
- Content-Encoding:
36
- - gzip
37
- Vary:
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
- Content-Length:
40
- - "113"
41
- body:
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: Mon, 02 Jul 2012 14:36:21 GMT
50
- recorded_with: VCR 2.1.1
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=chebyte3
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
- Accept-Encoding:
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
- User-Agent:
15
- - Ruby
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/0.7.65
23
- Date:
24
- - Mon, 02 Jul 2012 14:36:15 GMT
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
- Connection:
27
+ Content-Length:
28
+ - '861'
29
+ Connection:
28
30
  - keep-alive
29
- X-Powered-By:
30
- - PHP/5.3.2-1ubuntu4.14
31
- Cache-Control:
32
- - private
33
- Set-Cookie:
34
- - sendgrid_frontend=4f71d816e5f60b0d28140f3d2ded57b0:3491cc1c885bb4ccd0d98b894220d773db5553c5; expires=Wed, 01-Aug-2012 14:35:50 GMT; path=/; httponly
35
- Content-Encoding:
36
- - gzip
37
- Vary:
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
- Content-Length:
40
- - "739"
41
- body:
42
- encoding: ASCII-8BIT
43
- string: !binary |
44
- H4sIAAAAAAAAA5RVwXITMQz9FU0uXEK59xZSSjullGk7wwE4KGsl64nX3rG9
45
- CQvTf0eyN6mTlC6ckn229Z6lJ/nb74nFhibnk5XHDUb0k+kk6mgE+vgMKQqV
46
- 123UzvLCrG3JqgC96zzsDkJ0QFjVcPV4+wmoQW3O+CRWUfM6qcn5Ek2gp+me
47
- sjK6WkeP1bognQsIj4JquzqhvtuQ33odKQDx3x6MtmuhTnEGLAUGbbOKMCIj
48
- dIs9w7Gah2Lt76JmipPR2SHQgpKokFTVBAsXo2vALdNXpJ8R0KoiTeEM4LKL
49
- nafhG7bOvonAgRQZzVciJcEKBgVdID92M8dlOr7RHWOv3GSoLFpO30YHvTAE
50
- usEViYBCcpHy4bvGCDVu+L7EDEJNakTf0rlIpeMud8CRKmPcNtlNaFEpQKi6
51
- IFnNIQR2XVw5vtM/WS+02FQ1HdaaMZgL+IKEhAvHwnVcvIZC4KQE5vcgwaBi
52
- 83C2R3hXaNH0UVeh7DPnVpzmWbF0SJ7KlbuNadgPQezoUbpArHR/dw1bHWs4
53
- jjSiJlLTGl4qtHyQ5MHj88Jrlcg10L8oa9tXoLT26wqU4112TX2Zj4sEwk1G
54
- XxSQgosE7pGgV2y1nIB8VE6OEC+qqmB8P5+fMnV8N+QsojE98A5pCvae59Kn
55
- sudZQ2+TlDBee95vo3VRL/sy4YLCZ4GZKnGfeE/mkuMes8WuvQYbwxRCx4MX
56
- A4g7K2IgjUD+FXtIL44OQSJldIiFsnvikWThC3JeH56XD7VdsohyY7YEO3Sa
57
- C5KMsQueJA8jrYfGWR2dZ8OMjgm/Ra+kzQ5mRULhIcMv2kT4eFS4tpfxm/rU
58
- U+t8DIN3htB5vuLwYOyqPCJr2LWt+TU6St1ssMnXYu3kyUg7vr+D3APDBA21
59
- 64wCK+bK4zRLCl3byoHRmarWuszSxc317X83EZ85gzla9lt6hHRAfgeOmaPv
60
- 6OnHHwAAAP//AwCQwcoZQggAAA==
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: Mon, 02 Jul 2012 14:36:15 GMT
64
- recorded_with: VCR 2.1.1
71
+ recorded_at: Fri, 17 Jan 2014 01:27:36 GMT
72
+ recorded_with: VCR 2.8.0