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/spamreports.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:00 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:43:01 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/spamreports.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:43:02 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:43:02 GMT
|
41
|
+
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/unsubscribes.add.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:43:03 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
|
+
H4sIAAAAAAAAA6tWyk0tLk5MT1WyUlAqLk1OBvKUagFuMoIgFgAAAA==
|
37
|
+
|
38
|
+
http_version:
|
39
|
+
recorded_at: Mon, 02 Jul 2012 14:43:04 GMT
|
40
|
+
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/unsubscribes.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:43:06 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
|
+
H4sIAAAAAAAAA6tWyk0tLk5MT1WyUlAqLk1OBvKUagFuMoIgFgAAAA==
|
37
|
+
|
38
|
+
http_version:
|
39
|
+
recorded_at: Mon, 02 Jul 2012 14:43:06 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/unsubscribes.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:05 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
|
+
H4sIAAAAAAAAA4uuVkrNTczMUbJSUCpJLS5xSK1IzC3ISdVLzs9Vqo0FAJGt
|
37
|
+
ANIfAAAA
|
38
|
+
|
39
|
+
http_version:
|
40
|
+
recorded_at: Mon, 02 Jul 2012 14:43:05 GMT
|
41
|
+
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/unsubscribes.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:43:07 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:43:08 GMT
|
41
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,318 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.add.json?address=555%20anystreet&api_key=pass&api_user=user&city=any%20city&confirm_password=somepass&country=US&email=email@email.com&first_name=home&last_name=simpson&password=somepass&phone=555-555&state=CA&username=test-4&website=someurl.com&zip=91234
|
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
|
+
- Wed, 04 Jul 2012 19:24:38 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=c8604632140a00d21fea27b26fdf74c0:bf395265d23634440039d895ba373f8b0287b65e; expires=Fri, 03-Aug-2012 19:24: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: Wed, 04 Jul 2012 19:24:38 GMT
|
49
|
+
- request:
|
50
|
+
method: get
|
51
|
+
uri: https://sendgrid.com/apiv2/customer.enable.json?api_key=pass&api_user=user&user=test-4
|
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
|
+
- Wed, 04 Jul 2012 19:24:42 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=95da4accc126f866ea44eeaf42c97943:a55d71089327d649ac141d5efe53e8daac1e274d; expires=Fri, 03-Aug-2012 19:24:41 GMT; path=/; httponly
|
81
|
+
Content-Encoding:
|
82
|
+
- gzip
|
83
|
+
Vary:
|
84
|
+
- Accept-Encoding
|
85
|
+
Content-Length:
|
86
|
+
- "46"
|
87
|
+
body:
|
88
|
+
encoding: ASCII-8BIT
|
89
|
+
string: !binary |
|
90
|
+
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
91
|
+
AA==
|
92
|
+
|
93
|
+
http_version:
|
94
|
+
recorded_at: Wed, 04 Jul 2012 19:24:42 GMT
|
95
|
+
- request:
|
96
|
+
method: get
|
97
|
+
uri: https://sendgrid.com/apiv2/customer.sendip.json?api_key=pass&api_user=user&ip%5B0%5D=74.63.231.33&set=specify&task=append&user=test-4
|
98
|
+
body:
|
99
|
+
encoding: US-ASCII
|
100
|
+
string: ""
|
101
|
+
headers:
|
102
|
+
Accept-Encoding:
|
103
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
104
|
+
Accept:
|
105
|
+
- "*/*"
|
106
|
+
User-Agent:
|
107
|
+
- Ruby
|
108
|
+
response:
|
109
|
+
status:
|
110
|
+
code: 200
|
111
|
+
message: OK
|
112
|
+
headers:
|
113
|
+
Server:
|
114
|
+
- nginx/0.7.65
|
115
|
+
Date:
|
116
|
+
- Wed, 04 Jul 2012 19:24:44 GMT
|
117
|
+
Content-Type:
|
118
|
+
- application/json
|
119
|
+
Connection:
|
120
|
+
- keep-alive
|
121
|
+
X-Powered-By:
|
122
|
+
- PHP/5.3.2-1ubuntu4.14
|
123
|
+
Cache-Control:
|
124
|
+
- private
|
125
|
+
Set-Cookie:
|
126
|
+
- sendgrid_frontend=b743574ed2739c31d5051c5c5bdcbd3d:499de797e948efd5a1d9eb2df31c4ef7e844a896; expires=Fri, 03-Aug-2012 19:24:44 GMT; path=/; httponly
|
127
|
+
Content-Encoding:
|
128
|
+
- gzip
|
129
|
+
Vary:
|
130
|
+
- Accept-Encoding
|
131
|
+
Content-Length:
|
132
|
+
- "46"
|
133
|
+
body:
|
134
|
+
encoding: ASCII-8BIT
|
135
|
+
string: !binary |
|
136
|
+
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
137
|
+
AA==
|
138
|
+
|
139
|
+
http_version:
|
140
|
+
recorded_at: Wed, 04 Jul 2012 19:24:45 GMT
|
141
|
+
- request:
|
142
|
+
method: get
|
143
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&name=opentrack&task=activate&user=test-4
|
144
|
+
body:
|
145
|
+
encoding: US-ASCII
|
146
|
+
string: ""
|
147
|
+
headers:
|
148
|
+
Accept-Encoding:
|
149
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
150
|
+
Accept:
|
151
|
+
- "*/*"
|
152
|
+
User-Agent:
|
153
|
+
- Ruby
|
154
|
+
response:
|
155
|
+
status:
|
156
|
+
code: 200
|
157
|
+
message: OK
|
158
|
+
headers:
|
159
|
+
Server:
|
160
|
+
- nginx/0.7.65
|
161
|
+
Date:
|
162
|
+
- Wed, 04 Jul 2012 19:24:47 GMT
|
163
|
+
Content-Type:
|
164
|
+
- application/json
|
165
|
+
Connection:
|
166
|
+
- keep-alive
|
167
|
+
X-Powered-By:
|
168
|
+
- PHP/5.3.2-1ubuntu4.14
|
169
|
+
Cache-Control:
|
170
|
+
- private
|
171
|
+
Set-Cookie:
|
172
|
+
- sendgrid_frontend=6bec246ed9c6559c8e7cffb70208dda0:14d6fd85ad01a322157bcaa3e26d7db985db5b03; expires=Fri, 03-Aug-2012 19:24:47 GMT; path=/; httponly
|
173
|
+
Content-Encoding:
|
174
|
+
- gzip
|
175
|
+
Vary:
|
176
|
+
- Accept-Encoding
|
177
|
+
Content-Length:
|
178
|
+
- "46"
|
179
|
+
body:
|
180
|
+
encoding: ASCII-8BIT
|
181
|
+
string: !binary |
|
182
|
+
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
183
|
+
AA==
|
184
|
+
|
185
|
+
http_version:
|
186
|
+
recorded_at: Wed, 04 Jul 2012 19:24:48 GMT
|
187
|
+
- request:
|
188
|
+
method: get
|
189
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?api_key=pass&api_user=user&name=clicktrack&task=activate&user=test-4
|
190
|
+
body:
|
191
|
+
encoding: US-ASCII
|
192
|
+
string: ""
|
193
|
+
headers:
|
194
|
+
Accept-Encoding:
|
195
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
196
|
+
Accept:
|
197
|
+
- "*/*"
|
198
|
+
User-Agent:
|
199
|
+
- Ruby
|
200
|
+
response:
|
201
|
+
status:
|
202
|
+
code: 200
|
203
|
+
message: OK
|
204
|
+
headers:
|
205
|
+
Server:
|
206
|
+
- nginx/0.7.65
|
207
|
+
Date:
|
208
|
+
- Wed, 04 Jul 2012 19:24:49 GMT
|
209
|
+
Content-Type:
|
210
|
+
- application/json
|
211
|
+
Connection:
|
212
|
+
- keep-alive
|
213
|
+
X-Powered-By:
|
214
|
+
- PHP/5.3.2-1ubuntu4.14
|
215
|
+
Cache-Control:
|
216
|
+
- private
|
217
|
+
Set-Cookie:
|
218
|
+
- sendgrid_frontend=3b33c190ddad757fd2f6d571f1d41045:4ab2cf186e7fc3c6178ac1c2e8ad45cfefe9e2c5; expires=Fri, 03-Aug-2012 19:24:49 GMT; path=/; httponly
|
219
|
+
Content-Encoding:
|
220
|
+
- gzip
|
221
|
+
Vary:
|
222
|
+
- Accept-Encoding
|
223
|
+
Content-Length:
|
224
|
+
- "46"
|
225
|
+
body:
|
226
|
+
encoding: ASCII-8BIT
|
227
|
+
string: !binary |
|
228
|
+
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
229
|
+
AA==
|
230
|
+
|
231
|
+
http_version:
|
232
|
+
recorded_at: Wed, 04 Jul 2012 19:24:50 GMT
|
233
|
+
- request:
|
234
|
+
method: post
|
235
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json
|
236
|
+
body:
|
237
|
+
encoding: US-ASCII
|
238
|
+
string: enable_text=1&user=test-4&name=clicktrack&task=setup&api_user=kyle%40agencieshq.com&api_key=pass
|
239
|
+
headers:
|
240
|
+
Accept:
|
241
|
+
- "*/*"
|
242
|
+
User-Agent:
|
243
|
+
- Ruby
|
244
|
+
response:
|
245
|
+
status:
|
246
|
+
code: 200
|
247
|
+
message: OK
|
248
|
+
headers:
|
249
|
+
Server:
|
250
|
+
- nginx/0.7.65
|
251
|
+
Date:
|
252
|
+
- Wed, 04 Jul 2012 19:24:53 GMT
|
253
|
+
Content-Type:
|
254
|
+
- application/json
|
255
|
+
Connection:
|
256
|
+
- keep-alive
|
257
|
+
X-Powered-By:
|
258
|
+
- PHP/5.3.2-1ubuntu4.14
|
259
|
+
Cache-Control:
|
260
|
+
- private
|
261
|
+
Set-Cookie:
|
262
|
+
- sendgrid_frontend=24df842efbff85129c417d840ca410f5:3eee4715ae0db8c56af46cf0312a3eff0de9de17; expires=Fri, 03-Aug-2012 19:24:53 GMT; path=/; httponly
|
263
|
+
Vary:
|
264
|
+
- Accept-Encoding
|
265
|
+
Content-Length:
|
266
|
+
- "21"
|
267
|
+
body:
|
268
|
+
encoding: US-ASCII
|
269
|
+
string: "{\"message\":\"success\"}"
|
270
|
+
http_version:
|
271
|
+
recorded_at: Wed, 04 Jul 2012 19:24:53 GMT
|
272
|
+
- request:
|
273
|
+
method: get
|
274
|
+
uri: https://sendgrid.com/apiv2/customer.auth.json?api_key=pass&api_user=user&password=somepass&user=test-3
|
275
|
+
body:
|
276
|
+
encoding: US-ASCII
|
277
|
+
string: ""
|
278
|
+
headers:
|
279
|
+
Accept-Encoding:
|
280
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
281
|
+
Accept:
|
282
|
+
- "*/*"
|
283
|
+
User-Agent:
|
284
|
+
- Ruby
|
285
|
+
response:
|
286
|
+
status:
|
287
|
+
code: 200
|
288
|
+
message: OK
|
289
|
+
headers:
|
290
|
+
Server:
|
291
|
+
- nginx/0.7.65
|
292
|
+
Date:
|
293
|
+
- Wed, 04 Jul 2012 19:24:55 GMT
|
294
|
+
Content-Type:
|
295
|
+
- application/json
|
296
|
+
Connection:
|
297
|
+
- keep-alive
|
298
|
+
X-Powered-By:
|
299
|
+
- PHP/5.3.2-1ubuntu4.14
|
300
|
+
Cache-Control:
|
301
|
+
- private
|
302
|
+
Set-Cookie:
|
303
|
+
- sendgrid_frontend=89b35fa9d04e81db5896b2d2fcb9d7b9:9273c47d7e92bd7296e305b28f492d1934021890; expires=Fri, 03-Aug-2012 19:24:55 GMT; path=/; httponly
|
304
|
+
Content-Encoding:
|
305
|
+
- gzip
|
306
|
+
Vary:
|
307
|
+
- Accept-Encoding
|
308
|
+
Content-Length:
|
309
|
+
- "46"
|
310
|
+
body:
|
311
|
+
encoding: ASCII-8BIT
|
312
|
+
string: !binary |
|
313
|
+
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
314
|
+
AA==
|
315
|
+
|
316
|
+
http_version:
|
317
|
+
recorded_at: Wed, 04 Jul 2012 19:24:56 GMT
|
318
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,46 @@
|
|
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=badappname&task=activate&user=test-1
|
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
|
+
- Wed, 04 Jul 2012 19:24:34 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
X-Powered-By:
|
30
|
+
- PHP/5.3.2-1ubuntu4.14
|
31
|
+
Content-Encoding:
|
32
|
+
- gzip
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding
|
35
|
+
Content-Length:
|
36
|
+
- "93"
|
37
|
+
body:
|
38
|
+
encoding: ASCII-8BIT
|
39
|
+
string: !binary |
|
40
|
+
H4sIAAAAAAAAA6pWSi0qyi9SsqpWSs5PSVWyMjEw1FHKTS0uTkwH8pQCUoty
|
41
|
+
M4uLM/PzFFJS8zJTU3QU8vJLFBJLSzLyizKrUlOUamsBAAAA//8DAJwS+OVE
|
42
|
+
AAAA
|
43
|
+
|
44
|
+
http_version:
|
45
|
+
recorded_at: Wed, 04 Jul 2012 19:24:35 GMT
|
46
|
+
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.apps.json?api_key=pass&api_user=user&name=clicktrack&task=activate&user=test-1
|
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
|
+
- Wed, 04 Jul 2012 19:24:29 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=2c1287c6b7756577b1504192aa1af84f:eaf21e4bd794552cbd99c730c45647fe51f24662; expires=Fri, 03-Aug-2012 19:24:29 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: Wed, 04 Jul 2012 19:24:30 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.apps.json?api_key=pass&api_user=user&name=opentrack&task=activate&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: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=f4ff56737866667b86cc7576dc90c552:45cb0b5e29cfa34270c7d02c3ec0f3ade90215bd; expires=Wed, 01-Aug-2012 14:35:52 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:16 GMT
|
49
|
+
recorded_with: VCR 2.1.1
|