sendgrid_webapi 0.0.2 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +132 -0
  3. data/.circleci/setup-rubygems.sh +5 -0
  4. data/.gitignore +27 -1
  5. data/.rspec +2 -2
  6. data/.ruby-version +1 -0
  7. data/.tool-versions +1 -0
  8. data/MIT-LICENSE +20 -0
  9. data/README.rdoc +103 -79
  10. data/lib/api_key/management.rb +33 -0
  11. data/lib/api_key/modules.rb +10 -0
  12. data/lib/apikey_client.rb +11 -0
  13. data/lib/base.rb +47 -13
  14. data/lib/helper.rb +8 -8
  15. data/lib/sendgrid_webapi.rb +1 -0
  16. data/lib/sub_user/modules.rb +15 -15
  17. data/lib/version.rb +2 -2
  18. data/lib/web_api/blocks.rb +5 -0
  19. data/lib/web_api/bounces.rb +5 -0
  20. data/lib/web_api/modules.rb +15 -11
  21. data/lib/web_api/version.rb +1 -1
  22. data/lib/webapi_client.rb +1 -1
  23. data/sendgrid_webapi.gemspec +12 -8
  24. data/spec/cassettes/client/_modules/_block/should_get_block_emails.yml +29 -41
  25. data/spec/cassettes/client/_modules/_block/should_get_totals_blocks.yml +36 -0
  26. data/spec/cassettes/client/_modules/_block/should_try_delete_not_existing_block_email.yml +29 -42
  27. data/spec/cassettes/client/_modules/_bounce/should_get_bounce_emails.yml +27 -31
  28. data/spec/cassettes/client/_modules/_bounce/should_get_totals_bounces.yml +36 -0
  29. data/spec/cassettes/client/_modules/_bounce/should_try_delete_not_existing_bounce_email.yml +27 -32
  30. data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml +38 -40
  31. data/spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml +38 -40
  32. data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml +38 -40
  33. data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails.yml +27 -31
  34. data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml +27 -32
  35. data/spec/cassettes/client/_modules/_parse_email/should_delete_parse_email.yml +73 -76
  36. data/spec/cassettes/client/_modules/_parse_email/should_get_parse_email.yml +38 -41
  37. data/spec/cassettes/client/_modules/_parse_email/should_set_parse_email.yml +38 -40
  38. data/spec/cassettes/client/_modules/_profile/should_get_profile.yml +39 -43
  39. data/spec/cassettes/client/_modules/_profile/should_set_first_name.yml +109 -117
  40. data/spec/cassettes/client/_modules/_spam/should_get_spam_emails.yml +27 -31
  41. data/spec/cassettes/client/_modules/_spam/should_try_delete_not_existing_spam_emails.yml +27 -32
  42. data/spec/cassettes/client/_modules/_unsubscribe/should_add_unsubscribe_emails.yml +27 -31
  43. data/spec/cassettes/client/_modules/_unsubscribe/should_delete_unsubscribe_email.yml +27 -31
  44. data/spec/cassettes/client/_modules/_unsubscribe/should_get_unsubscribe_emails.yml +27 -32
  45. data/spec/cassettes/client/_modules/_unsubscribe/should_try_delete_not_existing_unsubscribe_emails.yml +27 -32
  46. data/spec/cassettes/helper/_create_sub_user_account/should_create_sub_user_account.yml +248 -255
  47. data/spec/cassettes/helper/_run_sendgrid_query/should_raise_with_unsucessfull_request.yml +39 -38
  48. data/spec/cassettes/helper/_run_sendgrid_query/should_run_sendgrid_request.yml +38 -40
  49. data/spec/cassettes/sub_user/_apps/should_activate_app.yml +38 -40
  50. data/spec/cassettes/sub_user/_apps/should_deactivate_app.yml +38 -40
  51. data/spec/cassettes/sub_user/_apps/should_get_current_setting_from_one_app.yml +38 -41
  52. data/spec/cassettes/sub_user/_apps/should_return_available_apps.yml +63 -55
  53. data/spec/cassettes/sub_user/_apps/should_set_current_app.yml +73 -72
  54. data/spec/cassettes/sub_user/_authentication/should_auth_a_sub_user.yml +38 -40
  55. data/spec/cassettes/sub_user/_authentication/should_return_error_with_a_bad_sub_user.yml +38 -40
  56. data/spec/cassettes/sub_user/_bounces/should_returns_bounce_emails.yml +38 -39
  57. data/spec/cassettes/sub_user/_bounces/should_tries_to_delete_unexisting_bounce_emails.yml +38 -40
  58. data/spec/cassettes/sub_user/_event_notification/should_add_event_notification_url.yml +38 -40
  59. data/spec/cassettes/sub_user/_event_notification/should_delete_event_notification_url.yml +38 -40
  60. data/spec/cassettes/sub_user/_event_notification/should_get_event_notification_url.yml +38 -40
  61. data/spec/cassettes/sub_user/_invalid_emails/should_return_invalid_emails.yml +38 -39
  62. data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml +38 -40
  63. data/spec/cassettes/sub_user/_ip_management/should_return_all_ips_available.yml +38 -40
  64. data/spec/cassettes/sub_user/_ip_management/should_show_ip_subuser.yml +38 -40
  65. data/spec/cassettes/sub_user/_limits/should_decrements_credits_for_a_sub_user.yml +73 -77
  66. data/spec/cassettes/sub_user/_limits/should_delete_all_limits_for_a_sub_user.yml +73 -76
  67. data/spec/cassettes/sub_user/_limits/should_increments_credits_for_a_sub_user.yml +73 -77
  68. data/spec/cassettes/sub_user/_limits/should_list_the_limits_for_a_sub_user.yml +38 -40
  69. data/spec/cassettes/sub_user/_limits/should_reset_all_limits_for_a_sub_user.yml +73 -77
  70. data/spec/cassettes/sub_user/_limits/should_returns_limits_for_a_sub_user.yml +38 -40
  71. data/spec/cassettes/sub_user/_limits/should_set_total_credits.yml +38 -40
  72. data/spec/cassettes/sub_user/_management/should_add_new_subuser.yml +38 -40
  73. data/spec/cassettes/sub_user/_management/should_disable_sub_user_for_send_email.yml +38 -40
  74. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_access_to_website.yml +38 -40
  75. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_send_email.yml +38 -40
  76. data/spec/cassettes/sub_user/_management/should_update_sub_user.yml +38 -40
  77. data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml +73 -78
  78. data/spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml +73 -78
  79. data/spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml +73 -76
  80. data/spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml +73 -78
  81. data/spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml +73 -78
  82. data/spec/cassettes/sub_user/_parse_email/should_delete_parse_email.yml +73 -76
  83. data/spec/cassettes/sub_user/_parse_email/should_get_parse_email.yml +38 -41
  84. data/spec/cassettes/sub_user/_parse_email/should_set_parse_email.yml +38 -40
  85. data/spec/cassettes/sub_user/_spam/should_return_spam_mails.yml +38 -39
  86. data/spec/cassettes/sub_user/_spam/should_tries_to_delete_unexisting_spam_mail.yml +38 -40
  87. data/spec/cassettes/sub_user/_unsubscribes/should_add_bounce_email.yml +38 -40
  88. data/spec/cassettes/sub_user/_unsubscribes/should_delete_existing_bounce_email.yml +38 -40
  89. data/spec/cassettes/sub_user/_unsubscribes/should_delete_unexisting_bounce_email.yml +38 -40
  90. data/spec/cassettes/sub_user/_unsubscribes/should_returns_bounce_emails.yml +38 -40
  91. data/spec/client_spec.rb +7 -4
  92. data/spec/helper_spec.rb +9 -9
  93. data/spec/sub_user_spec.rb +63 -68
  94. data/test.rb +5 -0
  95. metadata +90 -58
  96. data/.travis.yml +0 -5
  97. data/spec/cassettes/sub_user/_management/should_get_all_subusers.yml +0 -54
@@ -1,96 +1,91 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
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:
5
+ uri: https://sendgrid.com/apiv2/customer.monitor.json?name=testmonitor&new_frequency=10&task=edit
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:51 GMT
25
- Content-Type:
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:25:57 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=0885d604fc8c8866b53b4aa204cb945f:5c7505ad5fc1ec50159ffd63fdc3d207d6cbfa63; expires=Wed, 01-Aug-2012 14:35:27 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=1d55e8ffe5621d390a68ef30fe8b00b9:86a8ae993c94d6a1f5f111992d7501a59b4c27e6;
39
+ expires=Sun, 16-Feb-2014 01:25:57 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:52 GMT
49
- - request:
46
+ recorded_at: Fri, 17 Jan 2014 01:25:57 GMT
47
+ - request:
50
48
  method: get
51
- uri: https://sendgrid.com/apiv2/customer.monitor.json?api_key=pass&api_user=user&task=list
52
- body:
49
+ uri: https://sendgrid.com/apiv2/customer.monitor.json?task=list
50
+ body:
53
51
  encoding: US-ASCII
54
- string: ""
55
- headers:
56
- Accept-Encoding:
52
+ string: ''
53
+ headers:
54
+ User-Agent:
55
+ - Faraday v0.8.9
56
+ Accept-Encoding:
57
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:
58
+ Accept:
59
+ - '*/*'
60
+ response:
61
+ status:
64
62
  code: 200
65
63
  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:
64
+ headers:
65
+ Server:
66
+ - nginx/1.4.2
67
+ Date:
68
+ - Fri, 17 Jan 2014 01:26:00 GMT
69
+ Content-Type:
72
70
  - application/json
73
- Connection:
71
+ Content-Length:
72
+ - '91'
73
+ Connection:
74
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:
75
+ X-Powered-By:
76
+ - PHP/5.3.2-1ubuntu4.22
77
+ Cache-Control:
78
+ - no-cache, must-revalidate
79
+ Expires:
80
+ - '0'
81
+ Set-Cookie:
82
+ - sendgrid_frontend=28134ff0c6d925d20f23debeabf4def0:ab1d6c91bd782e1f8ae486d79be2dddf16401ac0;
83
+ expires=Sun, 16-Feb-2014 01:25:59 GMT; path=/; httponly
84
+ Vary:
84
85
  - Accept-Encoding
85
- Content-Length:
86
- - "91"
87
- body:
88
- encoding: ASCII-8BIT
89
- string: !binary |
90
- H4sIAAAAAAAAA4quVspLzE1VslIqSS0uyc3PyyzJL1LSUUrNTczMgYo6gAi9
91
- 5PxcoHhaUWphaWpeciVQztAAKFBanFpUrGQVHVsbCwAAAP//AwCs7EScTAAA
92
- AA==
93
-
86
+ body:
87
+ encoding: UTF-8
88
+ string: '[{"name":"testmonitor","email":"test@email.com","frequency":"10","users":[]}]'
94
89
  http_version:
95
- recorded_at: Mon, 02 Jul 2012 14:35:53 GMT
96
- recorded_with: VCR 2.1.1
90
+ recorded_at: Fri, 17 Jan 2014 01:26:00 GMT
91
+ recorded_with: VCR 2.8.0
@@ -1,96 +1,91 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: get
5
- uri: https://sendgrid.com/apiv2/customer.monitor.json?api_key=pass&api_user=user&name=testmonitor&task=detach&user=chebyte3
6
- body:
5
+ uri: https://sendgrid.com/apiv2/customer.monitor.json?name=testmonitor&task=detach&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:58 GMT
25
- Content-Type:
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:26:07 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=c801f927766aed65efeb809f1dc36901:c74d7783e009b41115b5549641db57fa91415dfd; expires=Wed, 01-Aug-2012 14:35:34 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=3c99fc8b6386c6e19a4943f3eb2f535e:383b7d6120aaf221d0264229bf4a470caeed9248;
39
+ expires=Sun, 16-Feb-2014 01:26:07 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:59 GMT
49
- - request:
46
+ recorded_at: Fri, 17 Jan 2014 01:26:07 GMT
47
+ - request:
50
48
  method: get
51
- uri: https://sendgrid.com/apiv2/customer.monitor.json?api_key=pass&api_user=user&task=list
52
- body:
49
+ uri: https://sendgrid.com/apiv2/customer.monitor.json?task=list
50
+ body:
53
51
  encoding: US-ASCII
54
- string: ""
55
- headers:
56
- Accept-Encoding:
52
+ string: ''
53
+ headers:
54
+ User-Agent:
55
+ - Faraday v0.8.9
56
+ Accept-Encoding:
57
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:
58
+ Accept:
59
+ - '*/*'
60
+ response:
61
+ status:
64
62
  code: 200
65
63
  message: OK
66
- headers:
67
- Server:
68
- - nginx/0.7.65
69
- Date:
70
- - Mon, 02 Jul 2012 14:36:00 GMT
71
- Content-Type:
64
+ headers:
65
+ Server:
66
+ - nginx/1.4.2
67
+ Date:
68
+ - Fri, 17 Jan 2014 01:26:09 GMT
69
+ Content-Type:
72
70
  - application/json
73
- Connection:
71
+ Content-Length:
72
+ - '91'
73
+ Connection:
74
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=f4b0e338307913531f5361a4b6764a88:62463b666266661e3b3b0ba0327ea76c18d7ff3b; expires=Wed, 01-Aug-2012 14:35:35 GMT; path=/; httponly
81
- Content-Encoding:
82
- - gzip
83
- Vary:
75
+ X-Powered-By:
76
+ - PHP/5.3.2-1ubuntu4.22
77
+ Cache-Control:
78
+ - no-cache, must-revalidate
79
+ Expires:
80
+ - '0'
81
+ Set-Cookie:
82
+ - sendgrid_frontend=cf8a7b33fcffcc23f449bf06c362edda:b0d33b357f05e31373d4b4ae4d16d0a626e489b8;
83
+ expires=Sun, 16-Feb-2014 01:26:08 GMT; path=/; httponly
84
+ Vary:
84
85
  - Accept-Encoding
85
- Content-Length:
86
- - "91"
87
- body:
88
- encoding: ASCII-8BIT
89
- string: !binary |
90
- H4sIAAAAAAAAA4quVspLzE1VslIqSS0uyc3PyyzJL1LSUUrNTczMgYo6gAi9
91
- 5PxcoHhaUWphaWpeciVQztAAKFBanFpUrGQVHVsbCwAAAP//AwCs7EScTAAA
92
- AA==
93
-
86
+ body:
87
+ encoding: UTF-8
88
+ string: '[{"name":"testmonitor","email":"test@email.com","frequency":"10","users":[]}]'
94
89
  http_version:
95
- recorded_at: Mon, 02 Jul 2012 14:36:00 GMT
96
- recorded_with: VCR 2.1.1
90
+ recorded_at: Fri, 17 Jan 2014 01:26:09 GMT
91
+ recorded_with: VCR 2.8.0
@@ -1,94 +1,91 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: get
5
- uri: https://sendgrid.com/apiv2/customer.parse.json?api_key=pass&api_user=user&hostname=www.example.com&task=delete&user=chebyte3
6
- body:
5
+ uri: https://sendgrid.com/apiv2/customer.parse.json?hostname=www.example.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:36:11 GMT
25
- Content-Type:
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:26:57 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=86ca2dc89933d6ad531a8edef8c5646a:9f4f6a19ee580ca35bd7eea43d15d9fed062a46f; expires=Wed, 01-Aug-2012 14:35:47 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=71fc5493ea0e469d03de6980bbb12c0d:b1cf9d7a22f54bac3e5b5a893e8ba44de75868e1;
39
+ expires=Sun, 16-Feb-2014 01:26:57 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:36:12 GMT
49
- - request:
46
+ recorded_at: Fri, 17 Jan 2014 01:26:57 GMT
47
+ - request:
50
48
  method: get
51
- uri: https://sendgrid.com/apiv2/customer.parse.json?api_key=pass&api_user=user&task=get&user=chebyte3
52
- body:
49
+ uri: https://sendgrid.com/apiv2/customer.parse.json?task=get&user=sendgrid_testuser3
50
+ body:
53
51
  encoding: US-ASCII
54
- string: ""
55
- headers:
56
- Accept-Encoding:
52
+ string: ''
53
+ headers:
54
+ User-Agent:
55
+ - Faraday v0.8.9
56
+ Accept-Encoding:
57
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:
58
+ Accept:
59
+ - '*/*'
60
+ response:
61
+ status:
64
62
  code: 200
65
63
  message: OK
66
- headers:
67
- Server:
68
- - nginx/0.7.65
69
- Date:
70
- - Mon, 02 Jul 2012 14:36:13 GMT
71
- Content-Type:
64
+ headers:
65
+ Server:
66
+ - nginx/1.4.2
67
+ Date:
68
+ - Fri, 17 Jan 2014 01:26:59 GMT
69
+ Content-Type:
72
70
  - application/json
73
- Connection:
71
+ Content-Length:
72
+ - '38'
73
+ Connection:
74
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=937fa46f9cf7f50acef382339194a5c1:b0499a5310ea7f9d2fa301239a53097e5bc87adc; expires=Wed, 01-Aug-2012 14:35:49 GMT; path=/; httponly
81
- Content-Encoding:
82
- - gzip
83
- Vary:
75
+ X-Powered-By:
76
+ - PHP/5.3.2-1ubuntu4.22
77
+ Cache-Control:
78
+ - no-cache, must-revalidate
79
+ Expires:
80
+ - '0'
81
+ Set-Cookie:
82
+ - sendgrid_frontend=039eb07035972e923d788ef9ecb7229c:460b7a6997531bb69a0f2e0ae6639824fd279212;
83
+ expires=Sun, 16-Feb-2014 01:26:59 GMT; path=/; httponly
84
+ Vary:
84
85
  - Accept-Encoding
85
- Content-Length:
86
- - "38"
87
- body:
88
- encoding: ASCII-8BIT
89
- string: !binary |
90
- H4sIAAAAAAAAA6pWKkgsKk5VsoqOrQUAAAD//wMAJoy/QwwAAAA=
91
-
86
+ body:
87
+ encoding: UTF-8
88
+ string: '{"parse":[]}'
92
89
  http_version:
93
- recorded_at: Mon, 02 Jul 2012 14:36:13 GMT
94
- recorded_with: VCR 2.1.1
90
+ recorded_at: Fri, 17 Jan 2014 01:26:59 GMT
91
+ recorded_with: VCR 2.8.0
@@ -1,50 +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.parse.json?api_key=pass&api_user=user&task=get&user=chebyte3
6
- body:
5
+ uri: https://sendgrid.com/apiv2/customer.parse.json?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:36:10 GMT
25
- Content-Type:
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:26:55 GMT
25
+ Content-Type:
26
26
  - application/json
27
- Connection:
27
+ Content-Length:
28
+ - '107'
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=931b15c228b39336e74137eca8015360:dbf6b88383886364f5ce4d40f8862f7630939e5a; expires=Wed, 01-Aug-2012 14:35:45 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=b515e8f57b1c8bf7671cc01083bd255f:3584842269d960818e34239fddd4b73a154db57a;
39
+ expires=Sun, 16-Feb-2014 01:26:55 GMT; path=/; httponly
40
+ Vary:
38
41
  - Accept-Encoding
39
- Content-Length:
40
- - "107"
41
- body:
42
- encoding: ASCII-8BIT
43
- string: !binary |
44
- H4sIAAAAAAAAA6pWKkgsKk5VsoquVsrILy7JS8wFcpTKy8v1UisScwtyUvWS
45
- 83OVdJRKi3Kg4rmVKfm5iZl5IIkYfbB2vYKMAqCa4oLE3PjkjNTkbCUrw9rY
46
- WgAAAAD//wMA2luGMF0AAAA=
47
-
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"parse":[{"hostname":"www.example.com","url":"www.mydomain.com\/parse.php","spam_check":1}]}'
48
45
  http_version:
49
- recorded_at: Mon, 02 Jul 2012 14:36:10 GMT
50
- recorded_with: VCR 2.1.1
46
+ recorded_at: Fri, 17 Jan 2014 01:26:55 GMT
47
+ recorded_with: VCR 2.8.0