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,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/api/bounces.get.json?api_key=pass&api_user=user
|
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:42:54 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Content-Encoding:
|
32
|
+
- gzip
|
33
|
+
body:
|
34
|
+
encoding: ASCII-8BIT
|
35
|
+
string: !binary |
|
36
|
+
H4sIAAAAAAAAA4uOBQApu0wNAgAAAA==
|
37
|
+
|
38
|
+
http_version:
|
39
|
+
recorded_at: Mon, 02 Jul 2012 14:42:55 GMT
|
40
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/api/bounces.delete.json?api_key=pass&api_user=user&email=test@example.com
|
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:42:56 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Content-Encoding:
|
32
|
+
- gzip
|
33
|
+
body:
|
34
|
+
encoding: ASCII-8BIT
|
35
|
+
string: !binary |
|
36
|
+
H4sIAAAAAAAAA6tWyk0tLk5MT1WyUlByzU3MzFFIyU8tVsjLL1FIrcgsLlGq
|
37
|
+
BQBKtWgQIwAAAA==
|
38
|
+
|
39
|
+
http_version:
|
40
|
+
recorded_at: Mon, 02 Jul 2012 14:42:56 GMT
|
41
|
+
recorded_with: VCR 2.1.1
|
data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/api/eventposturl.delete.json?api_key=pass&api_user=user
|
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:43: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=1302f6bc5e172cb57f5a77faad5ddd0b:f26b9aad2dbd5b3b724d53817547aaa5c4a2516d; expires=Wed, 01-Aug-2012 14:42:54 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:43:19 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/eventposturl.get.json?api_key=pass&api_user=user
|
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:43: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=fbbde1d375bf0dd21a1dd7f6280d42c4:8c6e674179c1bf8e1c1de71ed232546e028fec5e; expires=Wed, 01-Aug-2012 14:42:52 GMT; path=/; httponly
|
35
|
+
Content-Encoding:
|
36
|
+
- gzip
|
37
|
+
Vary:
|
38
|
+
- Accept-Encoding
|
39
|
+
Content-Length:
|
40
|
+
- "69"
|
41
|
+
body:
|
42
|
+
encoding: ASCII-8BIT
|
43
|
+
string: !binary |
|
44
|
+
H4sIAAAAAAAAA4quViotylGyUsooKSmwitGP0S8vL9erzC8tKsgvLgFKZaQW
|
45
|
+
peol5+cq1cYCAAAA//8DAEwaSHgsAAAA
|
46
|
+
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 02 Jul 2012 14:43:17 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/eventposturl.set.json?api_key=pass&api_user=user&url=http://www.yourposturlhere.com
|
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:43: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=8cbc584d37741ff5c8a38e9011be6ce1:ca5a0a139b9a7b7449edcddafe94fd785c117dff; expires=Wed, 01-Aug-2012 14:42:51 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:43:16 GMT
|
49
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/api/invalidemails.get.json?api_key=pass&api_user=user
|
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:42:57 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Content-Encoding:
|
32
|
+
- gzip
|
33
|
+
body:
|
34
|
+
encoding: ASCII-8BIT
|
35
|
+
string: !binary |
|
36
|
+
H4sIAAAAAAAAA4uOBQApu0wNAgAAAA==
|
37
|
+
|
38
|
+
http_version:
|
39
|
+
recorded_at: Mon, 02 Jul 2012 14:42:58 GMT
|
40
|
+
recorded_with: VCR 2.1.1
|
data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/api/invalidemails.delete.json?api_key=pass&api_user=user&email=test@example.com
|
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:42:59 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Content-Encoding:
|
32
|
+
- gzip
|
33
|
+
body:
|
34
|
+
encoding: ASCII-8BIT
|
35
|
+
string: !binary |
|
36
|
+
H4sIAAAAAAAAA6tWyk0tLk5MT1WyUlByzU3MzFFIyU8tVsjLL1FIrcgsLlGq
|
37
|
+
BQBKtWgQIwAAAA==
|
38
|
+
|
39
|
+
http_version:
|
40
|
+
recorded_at: Mon, 02 Jul 2012 14:42:59 GMT
|
41
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,94 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/api/parse.delete.json?api_key=pass&api_user=user&hostname=www.example.com
|
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:43: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=6bf50ee28fc8b4f072ae06c547c13c3c:802738c0a33c5e5c7ac02e74ae19be466365bbcf; expires=Wed, 01-Aug-2012 14:42:48 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:43:13 GMT
|
49
|
+
- request:
|
50
|
+
method: get
|
51
|
+
uri: https://sendgrid.com/api/parse.get.json?api_key=pass&api_user=user
|
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:43:14 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=e597f4a34a0c6aad2e2b8115f1c61412:f50f6bb1caece2efc9b0733e35e881553f310b12; expires=Wed, 01-Aug-2012 14:42: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:43:14 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/api/parse.get.json?api_key=pass&api_user=user
|
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:43: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=1c2486bdd270e39acf88bf695e61bbde:d0be2d1b8a61049c67c82c6e0bd0ef71e0d178de; expires=Wed, 01-Aug-2012 14:42:46 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:43:11 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/api/parse.set.json?api_key=pass&api_user=user&hostname=www.example.com&spam_check=1&url=www.mydomain.com/parse.php
|
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:43: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=8c9ade96690da06532db4f8537a58d0e:e7dcdefc7ee6b2439703baebd96204e9327b8d7b; expires=Wed, 01-Aug-2012 14:42:45 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:43:09 GMT
|
49
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/api/profile.get.json?api_key=pass&api_user=user
|
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:43: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=0281062ca9aedaf3d14f8b0636917bbd:7fa7d12a67a2c1dcec919fbf185cce1a810f3201; expires=Wed, 01-Aug-2012 14:42:55 GMT; path=/; httponly
|
35
|
+
Content-Encoding:
|
36
|
+
- gzip
|
37
|
+
Vary:
|
38
|
+
- Accept-Encoding
|
39
|
+
Content-Length:
|
40
|
+
- "214"
|
41
|
+
body:
|
42
|
+
encoding: ASCII-8BIT
|
43
|
+
string: !binary |
|
44
|
+
H4sIAAAAAAAAA3yPQQrCMBBFr1KyrlaqLepK8QYWcWGlxDjSYNuEZKJU8e5O
|
45
|
+
2mJ3Bobhvz/5mZzezFkwDa+BrRnXehHPl2m62pRg1N1NhapZyKDmsvrjc4Hy
|
46
|
+
4QPQOCB9k8ZiMYTuwUJVgSFe8RHvnEVVd5hfrwasJZgkSbBt2iBDA4CjFZNH
|
47
|
+
Skhs/VXfQmaRo0/Kuh6yl9SkVjM6fla5Bo0fP2Qkdaka6F+YDJUQfsLFyi6l
|
48
|
+
RNTrPMqj44B+ZsGF6Nfrvvc5fwEAAP//AwCFoZM+NQEAAA==
|
49
|
+
|
50
|
+
http_version:
|
51
|
+
recorded_at: Mon, 02 Jul 2012 14:43:20 GMT
|
52
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,144 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/api/profile.set.json?api_key=pass&api_user=user&first_name=test
|
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:43: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=57378bb1ecb95876ef29c114134b0537:372a0116659704e02ef0c23cef9a695f42a9b4e2; expires=Wed, 01-Aug-2012 14:42:57 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:43:22 GMT
|
49
|
+
- request:
|
50
|
+
method: get
|
51
|
+
uri: https://sendgrid.com/api/profile.get.json?api_key=pass&api_user=user
|
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:43:23 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=75b49a37e211e8065bd3423288aa73af:20046f50f3c639968ea7918c67633c3105ca3ab3; expires=Wed, 01-Aug-2012 14:42:59 GMT; path=/; httponly
|
81
|
+
Content-Encoding:
|
82
|
+
- gzip
|
83
|
+
Vary:
|
84
|
+
- Accept-Encoding
|
85
|
+
Content-Length:
|
86
|
+
- "211"
|
87
|
+
body:
|
88
|
+
encoding: ASCII-8BIT
|
89
|
+
string: !binary |
|
90
|
+
H4sIAAAAAAAAA3yPTQrCMBCFr1Kyrj9UW2xXikco4sJKielIg6YJyURR8e5O
|
91
|
+
2qI7A2F435t5kxxezDuwHVfACsaNWSaLVZbl6xasvvip0IrFDBSX1z8+Fyhv
|
92
|
+
IQCtB9JnaR3WYyiCQ2JX/kNb71ArsGG0aSw4RzBN02jTPaISLQD+rIQ8UkLi
|
93
|
+
I4yGEjOHHENS2deYPaUhlc/phF7tO7ShfVeSNK3uYNgwGW9K+A4nJ/uUFtEU
|
94
|
+
1aya7Uf0NWsuxPC8/mvv4wcAAP//AwAnWcbgMQEAAA==
|
95
|
+
|
96
|
+
http_version:
|
97
|
+
recorded_at: Mon, 02 Jul 2012 14:43:23 GMT
|
98
|
+
- request:
|
99
|
+
method: get
|
100
|
+
uri: https://sendgrid.com/api/profile.set.json?api_key=pass&api_user=user&first_name=Reseller
|
101
|
+
body:
|
102
|
+
encoding: US-ASCII
|
103
|
+
string: ""
|
104
|
+
headers:
|
105
|
+
Accept-Encoding:
|
106
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
107
|
+
Accept:
|
108
|
+
- "*/*"
|
109
|
+
User-Agent:
|
110
|
+
- Ruby
|
111
|
+
response:
|
112
|
+
status:
|
113
|
+
code: 200
|
114
|
+
message: OK
|
115
|
+
headers:
|
116
|
+
Server:
|
117
|
+
- nginx/0.7.65
|
118
|
+
Date:
|
119
|
+
- Mon, 02 Jul 2012 14:43:25 GMT
|
120
|
+
Content-Type:
|
121
|
+
- application/json
|
122
|
+
Connection:
|
123
|
+
- keep-alive
|
124
|
+
X-Powered-By:
|
125
|
+
- PHP/5.3.2-1ubuntu4.14
|
126
|
+
Cache-Control:
|
127
|
+
- private
|
128
|
+
Set-Cookie:
|
129
|
+
- sendgrid_frontend=c7cf07314d1b3677c5eb58f1fdb4bef6:080f5d6434c1c00cc6e8d1c37cfa0e09fc558f28; expires=Wed, 01-Aug-2012 14:43:00 GMT; path=/; httponly
|
130
|
+
Content-Encoding:
|
131
|
+
- gzip
|
132
|
+
Vary:
|
133
|
+
- Accept-Encoding
|
134
|
+
Content-Length:
|
135
|
+
- "46"
|
136
|
+
body:
|
137
|
+
encoding: ASCII-8BIT
|
138
|
+
string: !binary |
|
139
|
+
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
140
|
+
AA==
|
141
|
+
|
142
|
+
http_version:
|
143
|
+
recorded_at: Mon, 02 Jul 2012 14:43:25 GMT
|
144
|
+
recorded_with: VCR 2.1.1
|