sendgrid_webapi 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/README.rdoc +389 -0
- data/Rakefile +5 -0
- data/lib/base.rb +41 -0
- data/lib/helper.rb +36 -0
- data/lib/middlewares/sendgrid_response.rb +42 -0
- data/lib/sendgrid_webapi.rb +5 -0
- data/lib/sub_user/apps.rb +31 -0
- data/lib/sub_user/auth.rb +10 -0
- data/lib/sub_user/bounces.rb +15 -0
- data/lib/sub_user/event_notification.rb +20 -0
- data/lib/sub_user/iframe.rb +8 -0
- data/lib/sub_user/invalid_emails.rb +15 -0
- data/lib/sub_user/ip_management.rb +23 -0
- data/lib/sub_user/limits.rb +35 -0
- data/lib/sub_user/management.rb +57 -0
- data/lib/sub_user/modules.rb +68 -0
- data/lib/sub_user/monitor_records.rb +35 -0
- data/lib/sub_user/parse.rb +20 -0
- data/lib/sub_user/spam.rb +15 -0
- data/lib/sub_user/stats.rb +8 -0
- data/lib/sub_user/unsubscribes.rb +21 -0
- data/lib/sub_user/white_label.rb +16 -0
- data/lib/subuser_client.rb +11 -0
- data/lib/web_api/blocks.rb +13 -0
- data/lib/web_api/bounces.rb +13 -0
- data/lib/web_api/event_notification.rb +18 -0
- data/lib/web_api/invalid_emails.rb +13 -0
- data/lib/web_api/mail.rb +8 -0
- data/lib/web_api/modules.rb +50 -0
- data/lib/web_api/parse.rb +18 -0
- data/lib/web_api/profile.rb +29 -0
- data/lib/web_api/spam.rb +13 -0
- data/lib/web_api/stats.rb +8 -0
- data/lib/web_api/unsubscribes.rb +18 -0
- data/lib/web_api/version.rb +3 -0
- data/lib/webapi_client.rb +12 -0
- data/sendgrid_webapi.gemspec +27 -0
- data/spec/cassettes/client/_modules/_block/should_get_block_emails.yml +48 -0
- data/spec/cassettes/client/_modules/_block/should_try_delete_not_existing_block_email.yml +49 -0
- data/spec/cassettes/client/_modules/_bounce/should_get_bounce_emails.yml +40 -0
- data/spec/cassettes/client/_modules/_bounce/should_try_delete_not_existing_bounce_email.yml +41 -0
- data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml +49 -0
- data/spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml +49 -0
- data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml +49 -0
- data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails.yml +40 -0
- data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml +41 -0
- data/spec/cassettes/client/_modules/_parse_email/should_delete_parse_email.yml +94 -0
- data/spec/cassettes/client/_modules/_parse_email/should_get_parse_email.yml +50 -0
- data/spec/cassettes/client/_modules/_parse_email/should_set_parse_email.yml +49 -0
- data/spec/cassettes/client/_modules/_profile/should_get_profile.yml +52 -0
- data/spec/cassettes/client/_modules/_profile/should_set_first_name.yml +144 -0
- data/spec/cassettes/client/_modules/_spam/should_get_spam_emails.yml +40 -0
- data/spec/cassettes/client/_modules/_spam/should_try_delete_not_existing_spam_emails.yml +41 -0
- data/spec/cassettes/client/_modules/_unsubscribe/should_add_unsubscribe_emails.yml +40 -0
- data/spec/cassettes/client/_modules/_unsubscribe/should_delete_unsubscribe_email.yml +40 -0
- data/spec/cassettes/client/_modules/_unsubscribe/should_get_unsubscribe_emails.yml +41 -0
- data/spec/cassettes/client/_modules/_unsubscribe/should_try_delete_not_existing_unsubscribe_emails.yml +41 -0
- data/spec/cassettes/helper/_create_sub_user_account/should_create_sub_user_account.yml +318 -0
- data/spec/cassettes/helper/_run_sendgrid_query/should_raise_with_unsucessfull_request.yml +46 -0
- data/spec/cassettes/helper/_run_sendgrid_query/should_run_sendgrid_request.yml +49 -0
- data/spec/cassettes/sub_user/_apps/should_activate_app.yml +49 -0
- data/spec/cassettes/sub_user/_apps/should_deactivate_app.yml +49 -0
- data/spec/cassettes/sub_user/_apps/should_get_current_setting_from_one_app.yml +50 -0
- data/spec/cassettes/sub_user/_apps/should_return_available_apps.yml +64 -0
- data/spec/cassettes/sub_user/_apps/should_set_current_app.yml +90 -0
- data/spec/cassettes/sub_user/_authentication/should_auth_a_sub_user.yml +49 -0
- data/spec/cassettes/sub_user/_authentication/should_return_error_with_a_bad_sub_user.yml +49 -0
- data/spec/cassettes/sub_user/_bounces/should_returns_bounce_emails.yml +48 -0
- data/spec/cassettes/sub_user/_bounces/should_tries_to_delete_unexisting_bounce_emails.yml +49 -0
- data/spec/cassettes/sub_user/_event_notification/should_add_event_notification_url.yml +49 -0
- data/spec/cassettes/sub_user/_event_notification/should_delete_event_notification_url.yml +49 -0
- data/spec/cassettes/sub_user/_event_notification/should_get_event_notification_url.yml +49 -0
- data/spec/cassettes/sub_user/_invalid_emails/should_return_invalid_emails.yml +48 -0
- data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml +49 -0
- data/spec/cassettes/sub_user/_ip_management/should_return_all_ips_available.yml +49 -0
- data/spec/cassettes/sub_user/_ip_management/should_show_ip_subuser.yml +49 -0
- data/spec/cassettes/sub_user/_limits/should_decrements_credits_for_a_sub_user.yml +95 -0
- data/spec/cassettes/sub_user/_limits/should_delete_all_limits_for_a_sub_user.yml +94 -0
- data/spec/cassettes/sub_user/_limits/should_increments_credits_for_a_sub_user.yml +95 -0
- data/spec/cassettes/sub_user/_limits/should_list_the_limits_for_a_sub_user.yml +49 -0
- data/spec/cassettes/sub_user/_limits/should_reset_all_limits_for_a_sub_user.yml +95 -0
- data/spec/cassettes/sub_user/_limits/should_returns_limits_for_a_sub_user.yml +49 -0
- data/spec/cassettes/sub_user/_limits/should_set_total_credits.yml +49 -0
- data/spec/cassettes/sub_user/_management/should_add_new_subuser.yml +49 -0
- data/spec/cassettes/sub_user/_management/should_disable_sub_user_for_send_email.yml +49 -0
- data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_access_to_website.yml +49 -0
- data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_send_email.yml +49 -0
- data/spec/cassettes/sub_user/_management/should_get_all_subusers.yml +54 -0
- data/spec/cassettes/sub_user/_management/should_update_sub_user.yml +49 -0
- data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml +96 -0
- data/spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml +96 -0
- data/spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml +94 -0
- data/spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml +96 -0
- data/spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml +96 -0
- data/spec/cassettes/sub_user/_parse_email/should_delete_parse_email.yml +94 -0
- data/spec/cassettes/sub_user/_parse_email/should_get_parse_email.yml +50 -0
- data/spec/cassettes/sub_user/_parse_email/should_set_parse_email.yml +49 -0
- data/spec/cassettes/sub_user/_spam/should_return_spam_mails.yml +48 -0
- data/spec/cassettes/sub_user/_spam/should_tries_to_delete_unexisting_spam_mail.yml +49 -0
- data/spec/cassettes/sub_user/_unsubscribes/should_add_bounce_email.yml +49 -0
- data/spec/cassettes/sub_user/_unsubscribes/should_delete_existing_bounce_email.yml +49 -0
- data/spec/cassettes/sub_user/_unsubscribes/should_delete_unexisting_bounce_email.yml +49 -0
- data/spec/cassettes/sub_user/_unsubscribes/should_returns_bounce_emails.yml +49 -0
- data/spec/client_spec.rb +132 -0
- data/spec/helper_spec.rb +47 -0
- data/spec/spec_helper.rb +13 -0
- data/spec/sub_user_spec.rb +270 -0
- metadata +290 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
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:
|
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:18 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=29dd0a4bf8a0fbbee38b37c8b4ac5bb8:886855815c30c4bd6105a4c6bcb1198e5ba23784; expires=Wed, 01-Aug-2012 14:35:53 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:18 GMT
|
49
|
+
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.apps.json?api_key=pass&api_user=user&name=eventnotify&task=getsettings&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:20 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=7f5ee3113018df7a80db4c5bf529d4d1:35cd422c3ec109d96412260802e86c3c7f06682a; expires=Wed, 01-Aug-2012 14:35:56 GMT; path=/; httponly
|
35
|
+
Content-Encoding:
|
36
|
+
- gzip
|
37
|
+
Vary:
|
38
|
+
- 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
|
+
|
48
|
+
http_version:
|
49
|
+
recorded_at: Mon, 02 Jul 2012 14:36:21 GMT
|
50
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&task=getavailable&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:15 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=4f71d816e5f60b0d28140f3d2ded57b0:3491cc1c885bb4ccd0d98b894220d773db5553c5; expires=Wed, 01-Aug-2012 14:35:50 GMT; path=/; httponly
|
35
|
+
Content-Encoding:
|
36
|
+
- gzip
|
37
|
+
Vary:
|
38
|
+
- 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
|
+
|
62
|
+
http_version:
|
63
|
+
recorded_at: Mon, 02 Jul 2012 14:36:15 GMT
|
64
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,90 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json
|
6
|
+
body:
|
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:
|
16
|
+
code: 200
|
17
|
+
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:
|
24
|
+
- application/json
|
25
|
+
Connection:
|
26
|
+
- 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:
|
34
|
+
- Accept-Encoding
|
35
|
+
Content-Length:
|
36
|
+
- "21"
|
37
|
+
body:
|
38
|
+
encoding: US-ASCII
|
39
|
+
string: "{\"message\":\"success\"}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Mon, 02 Jul 2012 14:36:23 GMT
|
42
|
+
- request:
|
43
|
+
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:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: ""
|
48
|
+
headers:
|
49
|
+
Accept-Encoding:
|
50
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
51
|
+
Accept:
|
52
|
+
- "*/*"
|
53
|
+
User-Agent:
|
54
|
+
- Ruby
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 200
|
58
|
+
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:
|
65
|
+
- application/json
|
66
|
+
Connection:
|
67
|
+
- 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:
|
77
|
+
- 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
|
+
|
88
|
+
http_version:
|
89
|
+
recorded_at: Mon, 02 Jul 2012 14:36:24 GMT
|
90
|
+
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.auth.json?api_key=pass&api_user=user&password=somepass&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:05 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=bf4fca841ecf5288f3bda1059c5c89e3:770b51936c0257f37fbffce8cd934339fbe323cf; expires=Wed, 01-Aug-2012 14:35:41 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:05 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/apiv2/customer.auth.json?api_key=pass&api_user=user&password=badpass&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: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=e4ca2190a4ade481a546c4b9530382a7:f9203f8ca7f4021f6c461bfb1054ce333cf0df3c; expires=Wed, 01-Aug-2012 14:35:42 GMT; path=/; httponly
|
35
|
+
Content-Encoding:
|
36
|
+
- gzip
|
37
|
+
Vary:
|
38
|
+
- Accept-Encoding
|
39
|
+
Content-Length:
|
40
|
+
- "88"
|
41
|
+
body:
|
42
|
+
encoding: ASCII-8BIT
|
43
|
+
string: !binary |
|
44
|
+
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUkotKsovUtKB0MVKVtFKnnlliTmZKQql
|
45
|
+
xalFeYm5qQqJeSkx+vlFCgWJxcXl+UUpSrG1AAAAAP//AwCK9C85QgAAAA==
|
46
|
+
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 02 Jul 2012 14:36:07 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.bounces.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:04 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=062a2ad3cdf94e3d393f5fd3598e2319:1c91c4465a5ed5d2841160eaaa6b874228e8ba03; expires=Wed, 01-Aug-2012 14:34:39 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:04 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.bounces.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:05 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=eefc81756f38b011a441239dd388ebba:9614aa5c99ed33f4301d5421ae7b5e0e2003a5cc; expires=Wed, 01-Aug-2012 14:34:41 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:06 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/apiv2/customer.eventposturl.json?api_key=pass&api_user=user&task=set&url=www.example.com/notification&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:21 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=0a98199b3f8037c14daca3b5e36ee8ff:61dc2fb74818c7fe7f279a584d3bcca5b925e1e2; expires=Wed, 01-Aug-2012 14:34:56 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:21 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/apiv2/customer.eventposturl.json?api_key=pass&api_user=user&task=delete&url=www.example.com/noti.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:35:24 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=534df7111c546170a9fbcc5cb7b975e1:02b6a1daf5588a49b3c8ea43262d8159a894a0fc; expires=Wed, 01-Aug-2012 14:34:59 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:24 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/apiv2/customer.eventposturl.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:22 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=20ddd0d2ddf822ce0aaa2dc098ed457a:c5e2aaa402b6945363d14d032741b689234320be; expires=Wed, 01-Aug-2012 14:34:58 GMT; path=/; httponly
|
35
|
+
Content-Encoding:
|
36
|
+
- gzip
|
37
|
+
Vary:
|
38
|
+
- Accept-Encoding
|
39
|
+
Content-Length:
|
40
|
+
- "67"
|
41
|
+
body:
|
42
|
+
encoding: ASCII-8BIT
|
43
|
+
string: !binary |
|
44
|
+
H4sIAAAAAAAAA4quViotylGyUiovL9dLrUjMLchJ1UvOz43Rz8svyUzLTE4s
|
45
|
+
yczPU6qNBQAAAP//AwAbFVqYKQAAAA==
|
46
|
+
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 02 Jul 2012 14:35:22 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/apiv2/customer.invalidemails.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:17 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=def44ddcdbaa37c9e14ad8eee4df27ae:b5d00701e77f402f8f1d507fb5940742673d5a51; expires=Wed, 01-Aug-2012 14:34:53 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:17 GMT
|
48
|
+
recorded_with: VCR 2.1.1
|
data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.invalidemails.json?api_key=pass&api_user=user&email=test@testr.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:19 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=4d558d3496ef70a01aacc833cee769c9:30c384add6a124d6b654de23a3d7817570e5a47f; expires=Wed, 01-Aug-2012 14:34:55 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:19 GMT
|
49
|
+
recorded_with: VCR 2.1.1
|