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.disable.json?api_key=pass&api_user=user&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:34:56 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=46419ccaec5ca9a222513d114bf73cb7:6f5dce045711462f1bb44d791d2d6c72b87abb93; expires=Wed, 01-Aug-2012 14:34:31 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:34:57 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.website_enable.json?api_key=pass&api_user=user&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:00 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=e94a966b09e46a7a886f8cb3e4665160:b5d50e823fddf380ab129729041fdfd2136eea29; expires=Wed, 01-Aug-2012 14:34:36 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:00 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.enable.json?api_key=pass&api_user=user&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:34: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=2c032ab62e57f7c636c0feda778f394f:688946fd8ada479e1876e7cf8de5ca73cb245457; expires=Wed, 01-Aug-2012 14:34: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:34:58 GMT
|
49
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.profile.json?api_key=pass&api_user=user&task=get
|
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:34:54 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=62ac20a811cbc3c4275613c30c68d82c:e4195477931c4a47a9934349269021766fe01372; expires=Wed, 01-Aug-2012 14:34:30 GMT; path=/; httponly
|
35
|
+
Content-Encoding:
|
36
|
+
- gzip
|
37
|
+
Vary:
|
38
|
+
- Accept-Encoding
|
39
|
+
Content-Length:
|
40
|
+
- "285"
|
41
|
+
body:
|
42
|
+
encoding: ASCII-8BIT
|
43
|
+
string: !binary |
|
44
|
+
H4sIAAAAAAAAA+SSz06EMBDGX4X0jG4AObgnjY9gPLlmM5RxaZa2pDOoaHx3
|
45
|
+
p7CKf9bD6k2bNJnv+6YD/aXXT6onDA4sqqXSDVYDo0oVWjDt7JzhA9iuxWPt
|
46
|
+
raSg2dzFAxz62H1rAvH6bQi4DY6qlqyFOSJjO/IuTqjrgETilWWZgBuIAyLP
|
47
|
+
SS6RKG14kEoakrFMFTFwnHVxLuLRdFKeZnlxEpt97zjE/qtLkV3jHU5fOJIt
|
48
|
+
zj1WZMbTDXO3XC1Wi48X2zWsQevp78YLPqf7KOW/w8RI/AnPzprZRCN5ld+g
|
49
|
+
2YIjoB+BybIsyaa1H47zjG7jD4FT+WDoHZlRH8Kl8RaD/8sPp/j6cIp/S+jm
|
50
|
+
BQAA//8DAAAqOD6CBAAA
|
51
|
+
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 02 Jul 2012 14:34:54 GMT
|
54
|
+
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.profile.json?api_key=pass&api_user=user&first_name=change_named&task=set&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:02 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=65ef3aec493c914fc73f16ac5f225b31:a21f33229514d9e3f0bc3ab0b8e8f8d6f21bd299; expires=Wed, 01-Aug-2012 14:34:37 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:02 GMT
|
49
|
+
recorded_with: VCR 2.1.1
|
data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml
ADDED
@@ -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=append&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:55 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=0b538d987f3b79d5d8e2d4e56d91f705:d8cb96ece16c8e2dd79e27a2606ed6cfa9e47677; expires=Wed, 01-Aug-2012 14:35:30 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:55 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:35:57 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=7e25b806c15710be5d84d200d203d59d:bc9bbfa63e49ac914d57b56c7b31a9dbe2466a73; expires=Wed, 01-Aug-2012 14:35:32 GMT; path=/; httponly
|
81
|
+
Content-Encoding:
|
82
|
+
- gzip
|
83
|
+
Vary:
|
84
|
+
- Accept-Encoding
|
85
|
+
Content-Length:
|
86
|
+
- "101"
|
87
|
+
body:
|
88
|
+
encoding: ASCII-8BIT
|
89
|
+
string: !binary |
|
90
|
+
H4sIAAAAAAAAA4quVspLzE1VslIqSS0uyc3PyyzJL1LSUUrNTczMgYo6gAi9
|
91
|
+
5PxcoHhaUWphaWpeciVQztAAKFBanFpUrGQVrZSckZpUWZJqrBRbGwsAAAD/
|
92
|
+
/wMACuQMmVYAAAA=
|
93
|
+
|
94
|
+
http_version:
|
95
|
+
recorded_at: Mon, 02 Jul 2012 14:35:57 GMT
|
96
|
+
recorded_with: VCR 2.1.1
|
@@ -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&email=test@test.com&frequency=10000&name=testmonitor&task=create
|
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:47 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=7a6ba0b411f1bd1bbfe67b3afeaf98b3:3342fa0c9f70d8d31b8af13ed1438e9e14f7a053; expires=Wed, 01-Aug-2012 14:35:22 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:47 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:35:49 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=38f1874be32f7efd5c8ecf06063b4304:329efab2bedb271404cb91b854788a6166666503; expires=Wed, 01-Aug-2012 14:35:24 GMT; path=/; httponly
|
81
|
+
Content-Encoding:
|
82
|
+
- gzip
|
83
|
+
Vary:
|
84
|
+
- Accept-Encoding
|
85
|
+
Content-Length:
|
86
|
+
- "93"
|
87
|
+
body:
|
88
|
+
encoding: ASCII-8BIT
|
89
|
+
string: !binary |
|
90
|
+
H4sIAAAAAAAAA4quVspLzE1VslIqSS0uyc3PyyzJL1LSUUrNTczMgYo6gAi9
|
91
|
+
5PxcoHhaUWphaWpeciVQztAACIBipcWpRcVKVtGxtbEAAAAA//8DANl1E6FP
|
92
|
+
AAAA
|
93
|
+
|
94
|
+
http_version:
|
95
|
+
recorded_at: Mon, 02 Jul 2012 14:35:49 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.monitor.json?api_key=pass&api_user=user&name=testmonitor&task=delete
|
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:02 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=0fa9bc877f0d3b8ecc6d52365c3d992c:3ac3273fff1bae65cc759f9e21d5a31bf581d82a; expires=Wed, 01-Aug-2012 14:35:37 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:02 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:03 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=a8192b685270bf799f0386afa53af2b2:4bb89148fd25b94feb6ddfa645f705263f9d8359; expires=Wed, 01-Aug-2012 14:35:39 GMT; path=/; httponly
|
81
|
+
Content-Encoding:
|
82
|
+
- gzip
|
83
|
+
Vary:
|
84
|
+
- Accept-Encoding
|
85
|
+
Content-Length:
|
86
|
+
- "28"
|
87
|
+
body:
|
88
|
+
encoding: ASCII-8BIT
|
89
|
+
string: !binary |
|
90
|
+
H4sIAAAAAAAAA4qOBQAAAP//AwApu0wNAgAAAA==
|
91
|
+
|
92
|
+
http_version:
|
93
|
+
recorded_at: Mon, 02 Jul 2012 14:36:04 GMT
|
94
|
+
recorded_with: VCR 2.1.1
|
@@ -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&new_frequency=10&task=edit
|
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:51 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=0885d604fc8c8866b53b4aa204cb945f:5c7505ad5fc1ec50159ffd63fdc3d207d6cbfa63; expires=Wed, 01-Aug-2012 14:35:27 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:52 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:35:53 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=7fba02d72cf9bfd32c0bd6f79acea5ab:e077e9c7e8daf5f5376a2481beea07dddc7ecb2a; expires=Wed, 01-Aug-2012 14:35:29 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:35:53 GMT
|
96
|
+
recorded_with: VCR 2.1.1
|