sendgrid_webapi 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/.rbenv-version +1 -0
  2. data/README.rdoc +76 -77
  3. data/lib/version.rb +1 -1
  4. data/lib/web_api/blocks.rb +5 -0
  5. data/lib/web_api/bounces.rb +5 -0
  6. data/lib/webapi_client.rb +1 -1
  7. data/sendgrid_webapi.gemspec +1 -1
  8. data/spec/cassettes/client/_modules/_block/should_get_block_emails.yml +29 -41
  9. data/spec/cassettes/client/_modules/_block/should_get_totals_blocks.yml +36 -0
  10. data/spec/cassettes/client/_modules/_block/should_try_delete_not_existing_block_email.yml +29 -42
  11. data/spec/cassettes/client/_modules/_bounce/should_get_bounce_emails.yml +27 -31
  12. data/spec/cassettes/client/_modules/_bounce/should_get_totals_bounces.yml +36 -0
  13. data/spec/cassettes/client/_modules/_bounce/should_try_delete_not_existing_bounce_email.yml +27 -32
  14. data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml +38 -40
  15. data/spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml +38 -40
  16. data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml +38 -40
  17. data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails.yml +27 -31
  18. data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml +27 -32
  19. data/spec/cassettes/client/_modules/_parse_email/should_delete_parse_email.yml +73 -76
  20. data/spec/cassettes/client/_modules/_parse_email/should_get_parse_email.yml +38 -41
  21. data/spec/cassettes/client/_modules/_parse_email/should_set_parse_email.yml +38 -40
  22. data/spec/cassettes/client/_modules/_profile/should_get_profile.yml +39 -43
  23. data/spec/cassettes/client/_modules/_profile/should_set_first_name.yml +109 -117
  24. data/spec/cassettes/client/_modules/_spam/should_get_spam_emails.yml +27 -31
  25. data/spec/cassettes/client/_modules/_spam/should_try_delete_not_existing_spam_emails.yml +27 -32
  26. data/spec/cassettes/client/_modules/_unsubscribe/should_add_unsubscribe_emails.yml +27 -31
  27. data/spec/cassettes/client/_modules/_unsubscribe/should_delete_unsubscribe_email.yml +27 -31
  28. data/spec/cassettes/client/_modules/_unsubscribe/should_get_unsubscribe_emails.yml +27 -32
  29. data/spec/cassettes/client/_modules/_unsubscribe/should_try_delete_not_existing_unsubscribe_emails.yml +27 -32
  30. data/spec/cassettes/helper/_create_sub_user_account/should_create_sub_user_account.yml +248 -255
  31. data/spec/cassettes/helper/_run_sendgrid_query/should_raise_with_unsucessfull_request.yml +39 -38
  32. data/spec/cassettes/helper/_run_sendgrid_query/should_run_sendgrid_request.yml +38 -40
  33. data/spec/cassettes/sub_user/_apps/should_activate_app.yml +38 -40
  34. data/spec/cassettes/sub_user/_apps/should_deactivate_app.yml +38 -40
  35. data/spec/cassettes/sub_user/_apps/should_get_current_setting_from_one_app.yml +38 -41
  36. data/spec/cassettes/sub_user/_apps/should_return_available_apps.yml +63 -55
  37. data/spec/cassettes/sub_user/_apps/should_set_current_app.yml +73 -72
  38. data/spec/cassettes/sub_user/_authentication/should_auth_a_sub_user.yml +38 -40
  39. data/spec/cassettes/sub_user/_authentication/should_return_error_with_a_bad_sub_user.yml +38 -40
  40. data/spec/cassettes/sub_user/_bounces/should_returns_bounce_emails.yml +38 -39
  41. data/spec/cassettes/sub_user/_bounces/should_tries_to_delete_unexisting_bounce_emails.yml +38 -40
  42. data/spec/cassettes/sub_user/_event_notification/should_add_event_notification_url.yml +38 -40
  43. data/spec/cassettes/sub_user/_event_notification/should_delete_event_notification_url.yml +38 -40
  44. data/spec/cassettes/sub_user/_event_notification/should_get_event_notification_url.yml +38 -40
  45. data/spec/cassettes/sub_user/_invalid_emails/should_return_invalid_emails.yml +38 -39
  46. data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml +38 -40
  47. data/spec/cassettes/sub_user/_ip_management/should_return_all_ips_available.yml +38 -40
  48. data/spec/cassettes/sub_user/_ip_management/should_show_ip_subuser.yml +38 -40
  49. data/spec/cassettes/sub_user/_limits/should_decrements_credits_for_a_sub_user.yml +73 -77
  50. data/spec/cassettes/sub_user/_limits/should_delete_all_limits_for_a_sub_user.yml +73 -76
  51. data/spec/cassettes/sub_user/_limits/should_increments_credits_for_a_sub_user.yml +73 -77
  52. data/spec/cassettes/sub_user/_limits/should_list_the_limits_for_a_sub_user.yml +38 -40
  53. data/spec/cassettes/sub_user/_limits/should_reset_all_limits_for_a_sub_user.yml +73 -77
  54. data/spec/cassettes/sub_user/_limits/should_returns_limits_for_a_sub_user.yml +38 -40
  55. data/spec/cassettes/sub_user/_limits/should_set_total_credits.yml +38 -40
  56. data/spec/cassettes/sub_user/_management/should_add_new_subuser.yml +38 -40
  57. data/spec/cassettes/sub_user/_management/should_disable_sub_user_for_send_email.yml +38 -40
  58. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_access_to_website.yml +38 -40
  59. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_send_email.yml +38 -40
  60. data/spec/cassettes/sub_user/_management/should_update_sub_user.yml +38 -40
  61. data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml +72 -77
  62. data/spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml +72 -77
  63. data/spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml +71 -74
  64. data/spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml +71 -76
  65. data/spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml +72 -77
  66. data/spec/cassettes/sub_user/_parse_email/should_delete_parse_email.yml +73 -76
  67. data/spec/cassettes/sub_user/_parse_email/should_get_parse_email.yml +38 -41
  68. data/spec/cassettes/sub_user/_parse_email/should_set_parse_email.yml +38 -40
  69. data/spec/cassettes/sub_user/_spam/should_return_spam_mails.yml +38 -39
  70. data/spec/cassettes/sub_user/_spam/should_tries_to_delete_unexisting_spam_mail.yml +38 -40
  71. data/spec/cassettes/sub_user/_unsubscribes/should_add_bounce_email.yml +38 -40
  72. data/spec/cassettes/sub_user/_unsubscribes/should_delete_existing_bounce_email.yml +38 -40
  73. data/spec/cassettes/sub_user/_unsubscribes/should_delete_unexisting_bounce_email.yml +38 -40
  74. data/spec/cassettes/sub_user/_unsubscribes/should_returns_bounce_emails.yml +38 -40
  75. data/spec/client_spec.rb +5 -2
  76. data/spec/helper_spec.rb +5 -5
  77. data/spec/sub_user_spec.rb +62 -67
  78. data/test.rb +5 -0
  79. metadata +10 -6
  80. data/spec/cassettes/sub_user/_management/should_get_all_subusers.yml +0 -54
@@ -1,49 +1,47 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
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:
5
+ uri: https://sendgrid.com/apiv2/customer.eventposturl.json?api_key=pass&api_user=user&task=set&url=www.example.com/notification&user=sendgrid_testuser3
6
+ body:
7
7
  encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Accept-Encoding:
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
11
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
18
  code: 200
19
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:
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:24:18 GMT
25
+ Content-Type:
26
26
  - application/json
27
- Connection:
27
+ Content-Length:
28
+ - '46'
29
+ Connection:
28
30
  - 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:
31
+ X-Powered-By:
32
+ - PHP/5.3.2-1ubuntu4.22
33
+ Cache-Control:
34
+ - no-cache, must-revalidate
35
+ Expires:
36
+ - '0'
37
+ Set-Cookie:
38
+ - sendgrid_frontend=55a37eac68597ca602c579f65f4bd575:508944d2bbba8f90c71004ad27cb542cccfedba3;
39
+ expires=Sun, 16-Feb-2014 01:24:18 GMT; path=/; httponly
40
+ Vary:
38
41
  - Accept-Encoding
39
- Content-Length:
40
- - "46"
41
- body:
42
- encoding: ASCII-8BIT
43
- string: !binary |
44
- H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
45
- AA==
46
-
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"message":"success"}'
47
45
  http_version:
48
- recorded_at: Mon, 02 Jul 2012 14:35:21 GMT
49
- recorded_with: VCR 2.1.1
46
+ recorded_at: Fri, 17 Jan 2014 01:24:19 GMT
47
+ recorded_with: VCR 2.8.0
@@ -1,49 +1,47 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
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:
5
+ uri: https://sendgrid.com/apiv2/customer.eventposturl.json?api_key=pass&api_user=user&task=delete&url=www.example.com/noti.php&user=sendgrid_testuser3
6
+ body:
7
7
  encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Accept-Encoding:
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
11
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
18
  code: 200
19
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:
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:24:22 GMT
25
+ Content-Type:
26
26
  - application/json
27
- Connection:
27
+ Content-Length:
28
+ - '46'
29
+ Connection:
28
30
  - 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:
31
+ X-Powered-By:
32
+ - PHP/5.3.2-1ubuntu4.22
33
+ Cache-Control:
34
+ - no-cache, must-revalidate
35
+ Expires:
36
+ - '0'
37
+ Set-Cookie:
38
+ - sendgrid_frontend=429185175ff9f0cabac2ae3c928162f5:785f46d62cba258b42e619312cd6d385771f1f2f;
39
+ expires=Sun, 16-Feb-2014 01:24:22 GMT; path=/; httponly
40
+ Vary:
38
41
  - Accept-Encoding
39
- Content-Length:
40
- - "46"
41
- body:
42
- encoding: ASCII-8BIT
43
- string: !binary |
44
- H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
45
- AA==
46
-
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"message":"success"}'
47
45
  http_version:
48
- recorded_at: Mon, 02 Jul 2012 14:35:24 GMT
49
- recorded_with: VCR 2.1.1
46
+ recorded_at: Fri, 17 Jan 2014 01:24:23 GMT
47
+ recorded_with: VCR 2.8.0
@@ -1,49 +1,47 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: get
5
- uri: https://sendgrid.com/apiv2/customer.eventposturl.json?api_key=pass&api_user=user&task=get&user=chebyte3
6
- body:
5
+ uri: https://sendgrid.com/apiv2/customer.eventposturl.json?api_key=pass&api_user=user&task=get&user=sendgrid_testuser3
6
+ body:
7
7
  encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Accept-Encoding:
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
11
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
18
  code: 200
19
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:
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:24:20 GMT
25
+ Content-Type:
26
26
  - application/json
27
- Connection:
27
+ Content-Length:
28
+ - '67'
29
+ Connection:
28
30
  - 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:
31
+ X-Powered-By:
32
+ - PHP/5.3.2-1ubuntu4.22
33
+ Cache-Control:
34
+ - no-cache, must-revalidate
35
+ Expires:
36
+ - '0'
37
+ Set-Cookie:
38
+ - sendgrid_frontend=6b78cedc1e5afeecdc10c11b936083c7:035d53d8783b02d300ce8326b40a6b7b8036daf2;
39
+ expires=Sun, 16-Feb-2014 01:24:20 GMT; path=/; httponly
40
+ Vary:
38
41
  - Accept-Encoding
39
- Content-Length:
40
- - "67"
41
- body:
42
- encoding: ASCII-8BIT
43
- string: !binary |
44
- H4sIAAAAAAAAA4quViotylGyUiovL9dLrUjMLchJ1UvOz43Rz8svyUzLTE4s
45
- yczPU6qNBQAAAP//AwAbFVqYKQAAAA==
46
-
42
+ body:
43
+ encoding: UTF-8
44
+ string: '[{"url":"www.example.com\/notification"}]'
47
45
  http_version:
48
- recorded_at: Mon, 02 Jul 2012 14:35:22 GMT
49
- recorded_with: VCR 2.1.1
46
+ recorded_at: Fri, 17 Jan 2014 01:24:21 GMT
47
+ recorded_with: VCR 2.8.0
@@ -1,48 +1,47 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: get
5
- uri: https://sendgrid.com/apiv2/customer.invalidemails.json?api_key=pass&api_user=user&task=get&user=chebyte3
6
- body:
5
+ uri: https://sendgrid.com/apiv2/customer.invalidemails.json?api_key=pass&api_user=user&task=get&user=sendgrid_testuser3
6
+ body:
7
7
  encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Accept-Encoding:
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
11
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
18
  code: 200
19
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:
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:23:43 GMT
25
+ Content-Type:
26
26
  - application/json
27
- Connection:
27
+ Content-Length:
28
+ - '28'
29
+ Connection:
28
30
  - 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:
31
+ X-Powered-By:
32
+ - PHP/5.3.2-1ubuntu4.22
33
+ Cache-Control:
34
+ - no-cache, must-revalidate
35
+ Expires:
36
+ - '0'
37
+ Set-Cookie:
38
+ - sendgrid_frontend=4d33d61c1bb8e91bbf604f35eab3b5ba:a33973394857ed5d06dfcc102add30a7b50fbf1c;
39
+ expires=Sun, 16-Feb-2014 01:23:42 GMT; path=/; httponly
40
+ Vary:
38
41
  - Accept-Encoding
39
- Content-Length:
40
- - "28"
41
- body:
42
- encoding: ASCII-8BIT
43
- string: !binary |
44
- H4sIAAAAAAAAA4qOBQAAAP//AwApu0wNAgAAAA==
45
-
42
+ body:
43
+ encoding: UTF-8
44
+ string: '[]'
46
45
  http_version:
47
- recorded_at: Mon, 02 Jul 2012 14:35:17 GMT
48
- recorded_with: VCR 2.1.1
46
+ recorded_at: Fri, 17 Jan 2014 01:23:43 GMT
47
+ recorded_with: VCR 2.8.0
@@ -1,49 +1,47 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
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:
5
+ uri: https://sendgrid.com/apiv2/customer.invalidemails.json?api_key=pass&api_user=user&email=test@testr.com&task=delete&user=sendgrid_testuser3
6
+ body:
7
7
  encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Accept-Encoding:
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
11
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
18
  code: 200
19
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:
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:23:44 GMT
25
+ Content-Type:
26
26
  - application/json
27
- Connection:
27
+ Content-Length:
28
+ - '60'
29
+ Connection:
28
30
  - 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:
31
+ X-Powered-By:
32
+ - PHP/5.3.2-1ubuntu4.22
33
+ Cache-Control:
34
+ - no-cache, must-revalidate
35
+ Expires:
36
+ - '0'
37
+ Set-Cookie:
38
+ - sendgrid_frontend=55aa028dc18f15a3a4ef5ad964b62c82:a56307df6be893ba30ae9c657fdc056e4c39cac2;
39
+ expires=Sun, 16-Feb-2014 01:23:44 GMT; path=/; httponly
40
+ Vary:
38
41
  - Accept-Encoding
39
- Content-Length:
40
- - "60"
41
- body:
42
- encoding: ASCII-8BIT
43
- string: !binary |
44
- H4sIAAAAAAAAA6pWyk0tLk5MT1WyUnLNTczMUUjJTy1WyMsvUUityCwuUaoF
45
- AAAA//8DACrxmdciAAAA
46
-
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"message":"Email does not exist"}'
47
45
  http_version:
48
- recorded_at: Mon, 02 Jul 2012 14:35:19 GMT
49
- recorded_with: VCR 2.1.1
46
+ recorded_at: Fri, 17 Jan 2014 01:23:45 GMT
47
+ recorded_with: VCR 2.8.0
@@ -1,49 +1,47 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: get
5
- uri: https://sendgrid.com/apiv2/customer.ip.json?api_key=pass&api_user=user&list=all&user=chebyte3
6
- body:
5
+ uri: https://sendgrid.com/apiv2/customer.ip.json?api_key=pass&api_user=user&list=all&user=sendgrid_testuser3
6
+ body:
7
7
  encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Accept-Encoding:
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
11
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
18
  code: 200
19
19
  message: OK
20
- headers:
21
- Server:
22
- - nginx/0.7.65
23
- Date:
24
- - Mon, 02 Jul 2012 14:35:44 GMT
25
- Content-Type:
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:25:28 GMT
25
+ Content-Type:
26
26
  - application/json
27
- Connection:
27
+ Content-Length:
28
+ - '52'
29
+ Connection:
28
30
  - keep-alive
29
- X-Powered-By:
30
- - PHP/5.3.2-1ubuntu4.14
31
- Cache-Control:
32
- - private
33
- Set-Cookie:
34
- - sendgrid_frontend=b25ba41e7be9dac5ef3b16bb58e1836b:788b487a6c47e9f6491aadbc46172eb736049022; expires=Wed, 01-Aug-2012 14:35:19 GMT; path=/; httponly
35
- Content-Encoding:
36
- - gzip
37
- Vary:
31
+ X-Powered-By:
32
+ - PHP/5.3.2-1ubuntu4.22
33
+ Cache-Control:
34
+ - no-cache, must-revalidate
35
+ Expires:
36
+ - '0'
37
+ Set-Cookie:
38
+ - sendgrid_frontend=add2756339bf280c9349156f6807794f:bf32ff90c1df9476820d20c39ef075742e82ba8f;
39
+ expires=Sun, 16-Feb-2014 01:25:28 GMT; path=/; httponly
40
+ Vary:
38
41
  - Accept-Encoding
39
- Content-Length:
40
- - "49"
41
- body:
42
- encoding: ASCII-8BIT
43
- string: !binary |
44
- H4sIAAAAAAAAA4quVsosULJSMjfRMzPWMzI21DM2VqqNBQAAAP//AwCbJBZL
45
- FwAAAA==
46
-
42
+ body:
43
+ encoding: UTF-8
44
+ string: '[{"ip":"192.254.126.178"}]'
47
45
  http_version:
48
- recorded_at: Mon, 02 Jul 2012 14:35:44 GMT
49
- recorded_with: VCR 2.1.1
46
+ recorded_at: Fri, 17 Jan 2014 01:25:28 GMT
47
+ recorded_with: VCR 2.8.0