sendgrid_webapi 0.0.2 → 0.1.2

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 (97) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +132 -0
  3. data/.circleci/setup-rubygems.sh +5 -0
  4. data/.gitignore +27 -1
  5. data/.rspec +2 -2
  6. data/.ruby-version +1 -0
  7. data/.tool-versions +1 -0
  8. data/MIT-LICENSE +20 -0
  9. data/README.rdoc +103 -79
  10. data/lib/api_key/management.rb +33 -0
  11. data/lib/api_key/modules.rb +10 -0
  12. data/lib/apikey_client.rb +11 -0
  13. data/lib/base.rb +47 -13
  14. data/lib/helper.rb +8 -8
  15. data/lib/sendgrid_webapi.rb +1 -0
  16. data/lib/sub_user/modules.rb +15 -15
  17. data/lib/version.rb +2 -2
  18. data/lib/web_api/blocks.rb +5 -0
  19. data/lib/web_api/bounces.rb +5 -0
  20. data/lib/web_api/modules.rb +15 -11
  21. data/lib/web_api/version.rb +1 -1
  22. data/lib/webapi_client.rb +1 -1
  23. data/sendgrid_webapi.gemspec +12 -8
  24. data/spec/cassettes/client/_modules/_block/should_get_block_emails.yml +29 -41
  25. data/spec/cassettes/client/_modules/_block/should_get_totals_blocks.yml +36 -0
  26. data/spec/cassettes/client/_modules/_block/should_try_delete_not_existing_block_email.yml +29 -42
  27. data/spec/cassettes/client/_modules/_bounce/should_get_bounce_emails.yml +27 -31
  28. data/spec/cassettes/client/_modules/_bounce/should_get_totals_bounces.yml +36 -0
  29. data/spec/cassettes/client/_modules/_bounce/should_try_delete_not_existing_bounce_email.yml +27 -32
  30. data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml +38 -40
  31. data/spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml +38 -40
  32. data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml +38 -40
  33. data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails.yml +27 -31
  34. data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml +27 -32
  35. data/spec/cassettes/client/_modules/_parse_email/should_delete_parse_email.yml +73 -76
  36. data/spec/cassettes/client/_modules/_parse_email/should_get_parse_email.yml +38 -41
  37. data/spec/cassettes/client/_modules/_parse_email/should_set_parse_email.yml +38 -40
  38. data/spec/cassettes/client/_modules/_profile/should_get_profile.yml +39 -43
  39. data/spec/cassettes/client/_modules/_profile/should_set_first_name.yml +109 -117
  40. data/spec/cassettes/client/_modules/_spam/should_get_spam_emails.yml +27 -31
  41. data/spec/cassettes/client/_modules/_spam/should_try_delete_not_existing_spam_emails.yml +27 -32
  42. data/spec/cassettes/client/_modules/_unsubscribe/should_add_unsubscribe_emails.yml +27 -31
  43. data/spec/cassettes/client/_modules/_unsubscribe/should_delete_unsubscribe_email.yml +27 -31
  44. data/spec/cassettes/client/_modules/_unsubscribe/should_get_unsubscribe_emails.yml +27 -32
  45. data/spec/cassettes/client/_modules/_unsubscribe/should_try_delete_not_existing_unsubscribe_emails.yml +27 -32
  46. data/spec/cassettes/helper/_create_sub_user_account/should_create_sub_user_account.yml +248 -255
  47. data/spec/cassettes/helper/_run_sendgrid_query/should_raise_with_unsucessfull_request.yml +39 -38
  48. data/spec/cassettes/helper/_run_sendgrid_query/should_run_sendgrid_request.yml +38 -40
  49. data/spec/cassettes/sub_user/_apps/should_activate_app.yml +38 -40
  50. data/spec/cassettes/sub_user/_apps/should_deactivate_app.yml +38 -40
  51. data/spec/cassettes/sub_user/_apps/should_get_current_setting_from_one_app.yml +38 -41
  52. data/spec/cassettes/sub_user/_apps/should_return_available_apps.yml +63 -55
  53. data/spec/cassettes/sub_user/_apps/should_set_current_app.yml +73 -72
  54. data/spec/cassettes/sub_user/_authentication/should_auth_a_sub_user.yml +38 -40
  55. data/spec/cassettes/sub_user/_authentication/should_return_error_with_a_bad_sub_user.yml +38 -40
  56. data/spec/cassettes/sub_user/_bounces/should_returns_bounce_emails.yml +38 -39
  57. data/spec/cassettes/sub_user/_bounces/should_tries_to_delete_unexisting_bounce_emails.yml +38 -40
  58. data/spec/cassettes/sub_user/_event_notification/should_add_event_notification_url.yml +38 -40
  59. data/spec/cassettes/sub_user/_event_notification/should_delete_event_notification_url.yml +38 -40
  60. data/spec/cassettes/sub_user/_event_notification/should_get_event_notification_url.yml +38 -40
  61. data/spec/cassettes/sub_user/_invalid_emails/should_return_invalid_emails.yml +38 -39
  62. data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml +38 -40
  63. data/spec/cassettes/sub_user/_ip_management/should_return_all_ips_available.yml +38 -40
  64. data/spec/cassettes/sub_user/_ip_management/should_show_ip_subuser.yml +38 -40
  65. data/spec/cassettes/sub_user/_limits/should_decrements_credits_for_a_sub_user.yml +73 -77
  66. data/spec/cassettes/sub_user/_limits/should_delete_all_limits_for_a_sub_user.yml +73 -76
  67. data/spec/cassettes/sub_user/_limits/should_increments_credits_for_a_sub_user.yml +73 -77
  68. data/spec/cassettes/sub_user/_limits/should_list_the_limits_for_a_sub_user.yml +38 -40
  69. data/spec/cassettes/sub_user/_limits/should_reset_all_limits_for_a_sub_user.yml +73 -77
  70. data/spec/cassettes/sub_user/_limits/should_returns_limits_for_a_sub_user.yml +38 -40
  71. data/spec/cassettes/sub_user/_limits/should_set_total_credits.yml +38 -40
  72. data/spec/cassettes/sub_user/_management/should_add_new_subuser.yml +38 -40
  73. data/spec/cassettes/sub_user/_management/should_disable_sub_user_for_send_email.yml +38 -40
  74. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_access_to_website.yml +38 -40
  75. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_send_email.yml +38 -40
  76. data/spec/cassettes/sub_user/_management/should_update_sub_user.yml +38 -40
  77. data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml +73 -78
  78. data/spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml +73 -78
  79. data/spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml +73 -76
  80. data/spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml +73 -78
  81. data/spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml +73 -78
  82. data/spec/cassettes/sub_user/_parse_email/should_delete_parse_email.yml +73 -76
  83. data/spec/cassettes/sub_user/_parse_email/should_get_parse_email.yml +38 -41
  84. data/spec/cassettes/sub_user/_parse_email/should_set_parse_email.yml +38 -40
  85. data/spec/cassettes/sub_user/_spam/should_return_spam_mails.yml +38 -39
  86. data/spec/cassettes/sub_user/_spam/should_tries_to_delete_unexisting_spam_mail.yml +38 -40
  87. data/spec/cassettes/sub_user/_unsubscribes/should_add_bounce_email.yml +38 -40
  88. data/spec/cassettes/sub_user/_unsubscribes/should_delete_existing_bounce_email.yml +38 -40
  89. data/spec/cassettes/sub_user/_unsubscribes/should_delete_unexisting_bounce_email.yml +38 -40
  90. data/spec/cassettes/sub_user/_unsubscribes/should_returns_bounce_emails.yml +38 -40
  91. data/spec/client_spec.rb +7 -4
  92. data/spec/helper_spec.rb +9 -9
  93. data/spec/sub_user_spec.rb +63 -68
  94. data/test.rb +5 -0
  95. metadata +90 -58
  96. data/.travis.yml +0 -5
  97. data/spec/cassettes/sub_user/_management/should_get_all_subusers.yml +0 -54
@@ -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?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?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?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?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?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
@@ -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=chebyte3&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
- Accept:
11
- - "*/*"
12
- User-Agent:
13
- - Ruby
14
- response:
15
- status:
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/0.7.65
21
- Date:
22
- - Mon, 02 Jul 2012 14:36:22 GMT
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
- Connection:
27
+ Content-Length:
28
+ - '46'
29
+ Connection:
26
30
  - keep-alive
27
- X-Powered-By:
28
- - PHP/5.3.2-1ubuntu4.14
29
- Cache-Control:
30
- - private
31
- Set-Cookie:
32
- - sendgrid_frontend=268d4324913e986399f00c869b35cc09:1a5948255d0f724e88ba498ced52dc8d6cfbd80f; expires=Wed, 01-Aug-2012 14:35:58 GMT; path=/; httponly
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=df8b5389cf476f9b4e09ffc9b8db8c5d:30700d2a3499557b6ed317a004b93fa65fa95cbb;
39
+ expires=Sun, 16-Feb-2014 01:27:48 GMT; path=/; httponly
40
+ Vary:
34
41
  - Accept-Encoding
35
- Content-Length:
36
- - "21"
37
- body:
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: Mon, 02 Jul 2012 14:36:23 GMT
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=chebyte3
45
- body:
49
+ uri: https://sendgrid.com/apiv2/customer.apps.json?name=eventnotify&task=getsettings&user=sendgrid_testuser3
50
+ body:
46
51
  encoding: US-ASCII
47
- string: ""
48
- headers:
49
- Accept-Encoding:
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
- User-Agent:
54
- - Ruby
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/0.7.65
62
- Date:
63
- - Mon, 02 Jul 2012 14:36:24 GMT
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
- Connection:
71
+ Content-Length:
72
+ - '159'
73
+ Connection:
67
74
  - keep-alive
68
- X-Powered-By:
69
- - PHP/5.3.2-1ubuntu4.14
70
- Cache-Control:
71
- - private
72
- Set-Cookie:
73
- - sendgrid_frontend=eb77d06f236ad49d516a90b1328a55bd:ae3b097c5bfc127f3037c2db034e776a872d7619; expires=Wed, 01-Aug-2012 14:36:00 GMT; path=/; httponly
74
- Content-Encoding:
75
- - gzip
76
- Vary:
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
- Content-Length:
79
- - "142"
80
- body:
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: Mon, 02 Jul 2012 14:36:24 GMT
90
- recorded_with: VCR 2.1.1
90
+ recorded_at: Fri, 17 Jan 2014 01:27:51 GMT
91
+ recorded_with: VCR 2.8.0