sendgrid_webapi 0.0.1

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 (112) hide show
  1. data/.gitignore +5 -0
  2. data/.rspec +2 -0
  3. data/.travis.yml +5 -0
  4. data/Gemfile +4 -0
  5. data/README.rdoc +389 -0
  6. data/Rakefile +5 -0
  7. data/lib/base.rb +41 -0
  8. data/lib/helper.rb +36 -0
  9. data/lib/middlewares/sendgrid_response.rb +42 -0
  10. data/lib/sendgrid_webapi.rb +5 -0
  11. data/lib/sub_user/apps.rb +31 -0
  12. data/lib/sub_user/auth.rb +10 -0
  13. data/lib/sub_user/bounces.rb +15 -0
  14. data/lib/sub_user/event_notification.rb +20 -0
  15. data/lib/sub_user/iframe.rb +8 -0
  16. data/lib/sub_user/invalid_emails.rb +15 -0
  17. data/lib/sub_user/ip_management.rb +23 -0
  18. data/lib/sub_user/limits.rb +35 -0
  19. data/lib/sub_user/management.rb +57 -0
  20. data/lib/sub_user/modules.rb +68 -0
  21. data/lib/sub_user/monitor_records.rb +35 -0
  22. data/lib/sub_user/parse.rb +20 -0
  23. data/lib/sub_user/spam.rb +15 -0
  24. data/lib/sub_user/stats.rb +8 -0
  25. data/lib/sub_user/unsubscribes.rb +21 -0
  26. data/lib/sub_user/white_label.rb +16 -0
  27. data/lib/subuser_client.rb +11 -0
  28. data/lib/web_api/blocks.rb +13 -0
  29. data/lib/web_api/bounces.rb +13 -0
  30. data/lib/web_api/event_notification.rb +18 -0
  31. data/lib/web_api/invalid_emails.rb +13 -0
  32. data/lib/web_api/mail.rb +8 -0
  33. data/lib/web_api/modules.rb +50 -0
  34. data/lib/web_api/parse.rb +18 -0
  35. data/lib/web_api/profile.rb +29 -0
  36. data/lib/web_api/spam.rb +13 -0
  37. data/lib/web_api/stats.rb +8 -0
  38. data/lib/web_api/unsubscribes.rb +18 -0
  39. data/lib/web_api/version.rb +3 -0
  40. data/lib/webapi_client.rb +12 -0
  41. data/sendgrid_webapi.gemspec +27 -0
  42. data/spec/cassettes/client/_modules/_block/should_get_block_emails.yml +48 -0
  43. data/spec/cassettes/client/_modules/_block/should_try_delete_not_existing_block_email.yml +49 -0
  44. data/spec/cassettes/client/_modules/_bounce/should_get_bounce_emails.yml +40 -0
  45. data/spec/cassettes/client/_modules/_bounce/should_try_delete_not_existing_bounce_email.yml +41 -0
  46. data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml +49 -0
  47. data/spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml +49 -0
  48. data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml +49 -0
  49. data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails.yml +40 -0
  50. data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml +41 -0
  51. data/spec/cassettes/client/_modules/_parse_email/should_delete_parse_email.yml +94 -0
  52. data/spec/cassettes/client/_modules/_parse_email/should_get_parse_email.yml +50 -0
  53. data/spec/cassettes/client/_modules/_parse_email/should_set_parse_email.yml +49 -0
  54. data/spec/cassettes/client/_modules/_profile/should_get_profile.yml +52 -0
  55. data/spec/cassettes/client/_modules/_profile/should_set_first_name.yml +144 -0
  56. data/spec/cassettes/client/_modules/_spam/should_get_spam_emails.yml +40 -0
  57. data/spec/cassettes/client/_modules/_spam/should_try_delete_not_existing_spam_emails.yml +41 -0
  58. data/spec/cassettes/client/_modules/_unsubscribe/should_add_unsubscribe_emails.yml +40 -0
  59. data/spec/cassettes/client/_modules/_unsubscribe/should_delete_unsubscribe_email.yml +40 -0
  60. data/spec/cassettes/client/_modules/_unsubscribe/should_get_unsubscribe_emails.yml +41 -0
  61. data/spec/cassettes/client/_modules/_unsubscribe/should_try_delete_not_existing_unsubscribe_emails.yml +41 -0
  62. data/spec/cassettes/helper/_create_sub_user_account/should_create_sub_user_account.yml +318 -0
  63. data/spec/cassettes/helper/_run_sendgrid_query/should_raise_with_unsucessfull_request.yml +46 -0
  64. data/spec/cassettes/helper/_run_sendgrid_query/should_run_sendgrid_request.yml +49 -0
  65. data/spec/cassettes/sub_user/_apps/should_activate_app.yml +49 -0
  66. data/spec/cassettes/sub_user/_apps/should_deactivate_app.yml +49 -0
  67. data/spec/cassettes/sub_user/_apps/should_get_current_setting_from_one_app.yml +50 -0
  68. data/spec/cassettes/sub_user/_apps/should_return_available_apps.yml +64 -0
  69. data/spec/cassettes/sub_user/_apps/should_set_current_app.yml +90 -0
  70. data/spec/cassettes/sub_user/_authentication/should_auth_a_sub_user.yml +49 -0
  71. data/spec/cassettes/sub_user/_authentication/should_return_error_with_a_bad_sub_user.yml +49 -0
  72. data/spec/cassettes/sub_user/_bounces/should_returns_bounce_emails.yml +48 -0
  73. data/spec/cassettes/sub_user/_bounces/should_tries_to_delete_unexisting_bounce_emails.yml +49 -0
  74. data/spec/cassettes/sub_user/_event_notification/should_add_event_notification_url.yml +49 -0
  75. data/spec/cassettes/sub_user/_event_notification/should_delete_event_notification_url.yml +49 -0
  76. data/spec/cassettes/sub_user/_event_notification/should_get_event_notification_url.yml +49 -0
  77. data/spec/cassettes/sub_user/_invalid_emails/should_return_invalid_emails.yml +48 -0
  78. data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml +49 -0
  79. data/spec/cassettes/sub_user/_ip_management/should_return_all_ips_available.yml +49 -0
  80. data/spec/cassettes/sub_user/_ip_management/should_show_ip_subuser.yml +49 -0
  81. data/spec/cassettes/sub_user/_limits/should_decrements_credits_for_a_sub_user.yml +95 -0
  82. data/spec/cassettes/sub_user/_limits/should_delete_all_limits_for_a_sub_user.yml +94 -0
  83. data/spec/cassettes/sub_user/_limits/should_increments_credits_for_a_sub_user.yml +95 -0
  84. data/spec/cassettes/sub_user/_limits/should_list_the_limits_for_a_sub_user.yml +49 -0
  85. data/spec/cassettes/sub_user/_limits/should_reset_all_limits_for_a_sub_user.yml +95 -0
  86. data/spec/cassettes/sub_user/_limits/should_returns_limits_for_a_sub_user.yml +49 -0
  87. data/spec/cassettes/sub_user/_limits/should_set_total_credits.yml +49 -0
  88. data/spec/cassettes/sub_user/_management/should_add_new_subuser.yml +49 -0
  89. data/spec/cassettes/sub_user/_management/should_disable_sub_user_for_send_email.yml +49 -0
  90. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_access_to_website.yml +49 -0
  91. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_send_email.yml +49 -0
  92. data/spec/cassettes/sub_user/_management/should_get_all_subusers.yml +54 -0
  93. data/spec/cassettes/sub_user/_management/should_update_sub_user.yml +49 -0
  94. data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml +96 -0
  95. data/spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml +96 -0
  96. data/spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml +94 -0
  97. data/spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml +96 -0
  98. data/spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml +96 -0
  99. data/spec/cassettes/sub_user/_parse_email/should_delete_parse_email.yml +94 -0
  100. data/spec/cassettes/sub_user/_parse_email/should_get_parse_email.yml +50 -0
  101. data/spec/cassettes/sub_user/_parse_email/should_set_parse_email.yml +49 -0
  102. data/spec/cassettes/sub_user/_spam/should_return_spam_mails.yml +48 -0
  103. data/spec/cassettes/sub_user/_spam/should_tries_to_delete_unexisting_spam_mail.yml +49 -0
  104. data/spec/cassettes/sub_user/_unsubscribes/should_add_bounce_email.yml +49 -0
  105. data/spec/cassettes/sub_user/_unsubscribes/should_delete_existing_bounce_email.yml +49 -0
  106. data/spec/cassettes/sub_user/_unsubscribes/should_delete_unexisting_bounce_email.yml +49 -0
  107. data/spec/cassettes/sub_user/_unsubscribes/should_returns_bounce_emails.yml +49 -0
  108. data/spec/client_spec.rb +132 -0
  109. data/spec/helper_spec.rb +47 -0
  110. data/spec/spec_helper.rb +13 -0
  111. data/spec/sub_user_spec.rb +270 -0
  112. metadata +290 -0
@@ -0,0 +1,96 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sendgrid.com/apiv2/customer.monitor.json?api_key=pass&api_user=user&name=testmonitor&task=detach&user=chebyte3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/0.7.65
23
+ Date:
24
+ - Mon, 02 Jul 2012 14:35:58 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - PHP/5.3.2-1ubuntu4.14
31
+ Cache-Control:
32
+ - private
33
+ Set-Cookie:
34
+ - sendgrid_frontend=c801f927766aed65efeb809f1dc36901:c74d7783e009b41115b5549641db57fa91415dfd; expires=Wed, 01-Aug-2012 14:35:34 GMT; path=/; httponly
35
+ Content-Encoding:
36
+ - gzip
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Length:
40
+ - "46"
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
45
+ AA==
46
+
47
+ http_version:
48
+ recorded_at: Mon, 02 Jul 2012 14:35:59 GMT
49
+ - request:
50
+ method: get
51
+ uri: https://sendgrid.com/apiv2/customer.monitor.json?api_key=pass&api_user=user&task=list
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ""
55
+ headers:
56
+ Accept-Encoding:
57
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
58
+ Accept:
59
+ - "*/*"
60
+ User-Agent:
61
+ - Ruby
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Server:
68
+ - nginx/0.7.65
69
+ Date:
70
+ - Mon, 02 Jul 2012 14:36:00 GMT
71
+ Content-Type:
72
+ - application/json
73
+ Connection:
74
+ - keep-alive
75
+ X-Powered-By:
76
+ - PHP/5.3.2-1ubuntu4.14
77
+ Cache-Control:
78
+ - private
79
+ Set-Cookie:
80
+ - sendgrid_frontend=f4b0e338307913531f5361a4b6764a88:62463b666266661e3b3b0ba0327ea76c18d7ff3b; expires=Wed, 01-Aug-2012 14:35:35 GMT; path=/; httponly
81
+ Content-Encoding:
82
+ - gzip
83
+ Vary:
84
+ - Accept-Encoding
85
+ Content-Length:
86
+ - "91"
87
+ body:
88
+ encoding: ASCII-8BIT
89
+ string: !binary |
90
+ H4sIAAAAAAAAA4quVspLzE1VslIqSS0uyc3PyyzJL1LSUUrNTczMgYo6gAi9
91
+ 5PxcoHhaUWphaWpeciVQztAAKFBanFpUrGQVHVsbCwAAAP//AwCs7EScTAAA
92
+ AA==
93
+
94
+ http_version:
95
+ recorded_at: Mon, 02 Jul 2012 14:36:00 GMT
96
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,94 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sendgrid.com/apiv2/customer.parse.json?api_key=pass&api_user=user&hostname=www.example.com&task=delete&user=chebyte3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/0.7.65
23
+ Date:
24
+ - Mon, 02 Jul 2012 14:36:11 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - PHP/5.3.2-1ubuntu4.14
31
+ Cache-Control:
32
+ - private
33
+ Set-Cookie:
34
+ - sendgrid_frontend=86ca2dc89933d6ad531a8edef8c5646a:9f4f6a19ee580ca35bd7eea43d15d9fed062a46f; expires=Wed, 01-Aug-2012 14:35:47 GMT; path=/; httponly
35
+ Content-Encoding:
36
+ - gzip
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Length:
40
+ - "46"
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
45
+ AA==
46
+
47
+ http_version:
48
+ recorded_at: Mon, 02 Jul 2012 14:36:12 GMT
49
+ - request:
50
+ method: get
51
+ uri: https://sendgrid.com/apiv2/customer.parse.json?api_key=pass&api_user=user&task=get&user=chebyte3
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ""
55
+ headers:
56
+ Accept-Encoding:
57
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
58
+ Accept:
59
+ - "*/*"
60
+ User-Agent:
61
+ - Ruby
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Server:
68
+ - nginx/0.7.65
69
+ Date:
70
+ - Mon, 02 Jul 2012 14:36:13 GMT
71
+ Content-Type:
72
+ - application/json
73
+ Connection:
74
+ - keep-alive
75
+ X-Powered-By:
76
+ - PHP/5.3.2-1ubuntu4.14
77
+ Cache-Control:
78
+ - private
79
+ Set-Cookie:
80
+ - sendgrid_frontend=937fa46f9cf7f50acef382339194a5c1:b0499a5310ea7f9d2fa301239a53097e5bc87adc; expires=Wed, 01-Aug-2012 14:35:49 GMT; path=/; httponly
81
+ Content-Encoding:
82
+ - gzip
83
+ Vary:
84
+ - Accept-Encoding
85
+ Content-Length:
86
+ - "38"
87
+ body:
88
+ encoding: ASCII-8BIT
89
+ string: !binary |
90
+ H4sIAAAAAAAAA6pWKkgsKk5VsoqOrQUAAAD//wMAJoy/QwwAAAA=
91
+
92
+ http_version:
93
+ recorded_at: Mon, 02 Jul 2012 14:36:13 GMT
94
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sendgrid.com/apiv2/customer.parse.json?api_key=pass&api_user=user&task=get&user=chebyte3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/0.7.65
23
+ Date:
24
+ - Mon, 02 Jul 2012 14:36:10 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - PHP/5.3.2-1ubuntu4.14
31
+ Cache-Control:
32
+ - private
33
+ Set-Cookie:
34
+ - sendgrid_frontend=931b15c228b39336e74137eca8015360:dbf6b88383886364f5ce4d40f8862f7630939e5a; expires=Wed, 01-Aug-2012 14:35:45 GMT; path=/; httponly
35
+ Content-Encoding:
36
+ - gzip
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Length:
40
+ - "107"
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA6pWKkgsKk5VsoquVsrILy7JS8wFcpTKy8v1UisScwtyUvWS
45
+ 83OVdJRKi3Kg4rmVKfm5iZl5IIkYfbB2vYKMAqCa4oLE3PjkjNTkbCUrw9rY
46
+ WgAAAAD//wMA2luGMF0AAAA=
47
+
48
+ http_version:
49
+ recorded_at: Mon, 02 Jul 2012 14:36:10 GMT
50
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sendgrid.com/apiv2/customer.parse.json?api_key=pass&api_user=user&hostname=www.example.com&spam_check=1&task=set&url=www.mydomain.com/parse.php&user=chebyte3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/0.7.65
23
+ Date:
24
+ - Mon, 02 Jul 2012 14:36:08 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - PHP/5.3.2-1ubuntu4.14
31
+ Cache-Control:
32
+ - private
33
+ Set-Cookie:
34
+ - sendgrid_frontend=49cf991c767014d2cd749e72d52c10b1:f5644e264f3a71b599eaeb5e53ead74c41a35565; expires=Wed, 01-Aug-2012 14:35:44 GMT; path=/; httponly
35
+ Content-Encoding:
36
+ - gzip
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Length:
40
+ - "46"
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
45
+ AA==
46
+
47
+ http_version:
48
+ recorded_at: Mon, 02 Jul 2012 14:36:08 GMT
49
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sendgrid.com/api/user.spamreports.json?api_key=pass&api_user=user&task=get&user=chebyte3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/0.7.65
23
+ Date:
24
+ - Mon, 02 Jul 2012 14:35:14 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - PHP/5.3.2-1ubuntu4.14
31
+ Cache-Control:
32
+ - private
33
+ Set-Cookie:
34
+ - sendgrid_frontend=47c7b4a8efafb72f68da40e06021ff41:4894dd50b36058d049876efc58580076d5b4c125; expires=Wed, 01-Aug-2012 14:34:49 GMT; path=/; httponly
35
+ Content-Encoding:
36
+ - gzip
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Length:
40
+ - "28"
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA4qOBQAAAP//AwApu0wNAgAAAA==
45
+
46
+ http_version:
47
+ recorded_at: Mon, 02 Jul 2012 14:35:14 GMT
48
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sendgrid.com/api/user.spamreports.json?api_key=pass&api_user=user&email=test@test.com&task=delete&user=chebyte3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/0.7.65
23
+ Date:
24
+ - Mon, 02 Jul 2012 14:35:16 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - PHP/5.3.2-1ubuntu4.14
31
+ Cache-Control:
32
+ - private
33
+ Set-Cookie:
34
+ - sendgrid_frontend=f7df1296c2dec0c3440fe56e8e90d0b8:b970b0034b2e27cc47473a7d784f25f6b889738c; expires=Wed, 01-Aug-2012 14:34:51 GMT; path=/; httponly
35
+ Content-Encoding:
36
+ - gzip
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Length:
40
+ - "60"
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA6pWyk0tLk5MT1WyUnLNTczMUUjJTy1WyMsvUUityCwuUaoF
45
+ AAAA//8DACrxmdciAAAA
46
+
47
+ http_version:
48
+ recorded_at: Mon, 02 Jul 2012 14:35:16 GMT
49
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sendgrid.com/api/user.unsubscribes.json?api_key=pass&api_user=user&email=test@test.com&task=add&user=chebyte3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/0.7.65
23
+ Date:
24
+ - Mon, 02 Jul 2012 14:35:07 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - PHP/5.3.2-1ubuntu4.14
31
+ Cache-Control:
32
+ - private
33
+ Set-Cookie:
34
+ - sendgrid_frontend=43c1723e2312a348273ffa9f13214c9b:849a11ad7ce7c50213ce94a30224466a510db89d; expires=Wed, 01-Aug-2012 14:34:42 GMT; path=/; httponly
35
+ Content-Encoding:
36
+ - gzip
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Length:
40
+ - "46"
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
45
+ AA==
46
+
47
+ http_version:
48
+ recorded_at: Mon, 02 Jul 2012 14:35:07 GMT
49
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sendgrid.com/api/user.unsubscribes.json?api_key=pass&api_user=user&email=test@test.com&task=delete&user=chebyte3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/0.7.65
23
+ Date:
24
+ - Mon, 02 Jul 2012 14:35:10 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - PHP/5.3.2-1ubuntu4.14
31
+ Cache-Control:
32
+ - private
33
+ Set-Cookie:
34
+ - sendgrid_frontend=69cb0fa68f1a25f8340cdffcd01741df:4e521aeb25acb3035de4f98688a1f22fc62b1032; expires=Wed, 01-Aug-2012 14:34:46 GMT; path=/; httponly
35
+ Content-Encoding:
36
+ - gzip
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Length:
40
+ - "46"
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
45
+ AA==
46
+
47
+ http_version:
48
+ recorded_at: Mon, 02 Jul 2012 14:35:11 GMT
49
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sendgrid.com/api/user.unsubscribes.json?api_key=pass&api_user=user&email=test@test.com&task=delete&user=chebyte3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/0.7.65
23
+ Date:
24
+ - Mon, 02 Jul 2012 14:35:12 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - PHP/5.3.2-1ubuntu4.14
31
+ Cache-Control:
32
+ - private
33
+ Set-Cookie:
34
+ - sendgrid_frontend=f8cab5957af93b969f6e2d25a14ea87f:ec959c581ea314d1b91672bdd3b39e900a3fc528; expires=Wed, 01-Aug-2012 14:34:48 GMT; path=/; httponly
35
+ Content-Encoding:
36
+ - gzip
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Length:
40
+ - "60"
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA6pWyk0tLk5MT1WyUnLNTczMUUjJTy1WyMsvUUityCwuUaoF
45
+ AAAA//8DACrxmdciAAAA
46
+
47
+ http_version:
48
+ recorded_at: Mon, 02 Jul 2012 14:35:12 GMT
49
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sendgrid.com/api/user.unsubscribes.json?api_key=pass&api_user=user&task=get&user=chebyte3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/0.7.65
23
+ Date:
24
+ - Mon, 02 Jul 2012 14:35:09 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - PHP/5.3.2-1ubuntu4.14
31
+ Cache-Control:
32
+ - private
33
+ Set-Cookie:
34
+ - sendgrid_frontend=43aaeaba021f8acea8bdffb4f26445d3:43dc8501500eb10a62d3c6938e871cfe550af89f; expires=Wed, 01-Aug-2012 14:34:44 GMT; path=/; httponly
35
+ Content-Encoding:
36
+ - gzip
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Length:
40
+ - "51"
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA4quVkrNTczMUbJSKkktLnEAEXrJ+blKtbEAAAAA//8DANmT
45
+ xK0bAAAA
46
+
47
+ http_version:
48
+ recorded_at: Mon, 02 Jul 2012 14:35:09 GMT
49
+ recorded_with: VCR 2.1.1